nyancat.cs
nyancat.cs copied to clipboard
Can we get a parameter --soundon?
It would be create if we have a --soundon Parameter to Play the Sound file to the nyancat like:
https://www.youtube.com/watch?v=QH2-TGUlwu4
Have fun :) 🐱
Nice idea but the name sounds kind of confusing. In my opinion --withsound sounds a bit more useful.
Thanks for your suggestion, should be interesting to implement. 😄 .
Not sure about the parameter name though. Might go with --with-sound
or maybe just --sound
. Not really sure yet 🤔 .
I think --sound
sounds good. But how we implement this? 😄
I don't know if there a multiplattform implementation of beep out there for dotnet core 😄
this is what we look for:
https://docs.microsoft.com/en-us/dotnet/api/system.console.beep?view=netcore-2.1#System_Console_Beep_System_Int32_System_Int32_
Anybody know the melody of Nyanyanyanyanyanyanyan?
Fuuuu…. The System.Beep funtion only supports windows :(
I added an initial rough implementation for a --sound
parameter in this commit https://github.com/nickvdyck/nyancat.cs/commit/89f17eb204a401275652a8f313824a3edb300f43 . It's windows only at the moment. I haven't found a native api on linux and mac yet (to be fair I also haven't looked). But I don't want to bring in some large dependency just to play some sound. So if I can't find a fairly sensible linux and mac api I'm going to leave this as is for now.