Generate Sound
-
Hello all! I'm wondering if anyone has any idea to generate specific frequencies? I am aware of Console.Beep(), but that plays through the PC-Speaker (Or Console Speaker, as it says in the tooltip) I'm wondering if there's a way to do this to play through your regular sound device (Eg: Speakers / Headphones) I thank you for your time! - Reelix
-= Reelix =-
-
Hello all! I'm wondering if anyone has any idea to generate specific frequencies? I am aware of Console.Beep(), but that plays through the PC-Speaker (Or Console Speaker, as it says in the tooltip) I'm wondering if there's a way to do this to play through your regular sound device (Eg: Speakers / Headphones) I thank you for your time! - Reelix
-= Reelix =-
The easiest way I know of is to use the system.media.soundplayer class - admitedly this only plays .WAV files, but it should be easy to create the frequencies you want as individual files.
-
The easiest way I know of is to use the system.media.soundplayer class - admitedly this only plays .WAV files, but it should be easy to create the frequencies you want as individual files.
-
Hello all! I'm wondering if anyone has any idea to generate specific frequencies? I am aware of Console.Beep(), but that plays through the PC-Speaker (Or Console Speaker, as it says in the tooltip) I'm wondering if there's a way to do this to play through your regular sound device (Eg: Speakers / Headphones) I thank you for your time! - Reelix
-= Reelix =-
System.Media.SoundPlayer has a constructor overload that has a Stream parameter[^] so you can construct your waveform in a MemoryStream and pass that to the SoundPlayer's constructor.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus) -
Hmm. Might take a little time then. Why so many - the human hearing range is only 20 -> 20,000 Hz. Are we writing software for bats now?
-
Hmm. Might take a little time then. Why so many - the human hearing range is only 20 -> 20,000 Hz. Are we writing software for bats now?
Heh heh :) I just want a free input on the frequency you can enter :) I was thinking of having a .wav file at a pre-set frequency, then somehow modifying the output frequency based on what the user inputs, then play that... Also, I've realised that Googling "C#"+Piano (To look for an example of ones already made) has rather irritating results, as you might imagine ;)
-= Reelix =-
-
Hello all! I'm wondering if anyone has any idea to generate specific frequencies? I am aware of Console.Beep(), but that plays through the PC-Speaker (Or Console Speaker, as it says in the tooltip) I'm wondering if there's a way to do this to play through your regular sound device (Eg: Speakers / Headphones) I thank you for your time! - Reelix
-= Reelix =-
-