Tone generation on the fly
-
The object of my program is to play tones through the speakers. I've seen programs that can generate .wav files and then play those, but I need to be able to raise/lower the pitch of the tone while it plays. Something like the Beep() function, but able to play through the speakers, rather than the pc's built in speaker. Note also that I plan to play two different tones through the left and right speakers, so I'll need some way of controlling this as well.
-
The object of my program is to play tones through the speakers. I've seen programs that can generate .wav files and then play those, but I need to be able to raise/lower the pitch of the tone while it plays. Something like the Beep() function, but able to play through the speakers, rather than the pc's built in speaker. Note also that I plan to play two different tones through the left and right speakers, so I'll need some way of controlling this as well.
-
-
Yes, and unless you see something I'm not, that talks about writing a wav file and then playing it, which isn't what I wanted
It can create it in memory, not save it to disk. But apparently it still has to finish writing it before it can play. A couple of weeks ago I was looking for a way to play a tone for as long as the user presses a key, but no joy. :(
-
The object of my program is to play tones through the speakers. I've seen programs that can generate .wav files and then play those, but I need to be able to raise/lower the pitch of the tone while it plays. Something like the Beep() function, but able to play through the speakers, rather than the pc's built in speaker. Note also that I plan to play two different tones through the left and right speakers, so I'll need some way of controlling this as well.
This probably won't help, but when i was doing some stuff on Linux a while ago I played some raw audio files, you did it by sending the data directly to the hardware (through drivers or whatever), so you would be able to construct a sample and send it to be played each frame (rather than getting the data from the file). So, basically what i'm saying is, you might need to get down and dirty because i don't think the .Net framework is going to help you much with this.
My current favourite word is: I'm starting to run out of fav. words!
-SK Genius
-
This probably won't help, but when i was doing some stuff on Linux a while ago I played some raw audio files, you did it by sending the data directly to the hardware (through drivers or whatever), so you would be able to construct a sample and send it to be played each frame (rather than getting the data from the file). So, basically what i'm saying is, you might need to get down and dirty because i don't think the .Net framework is going to help you much with this.
My current favourite word is: I'm starting to run out of fav. words!
-SK Genius
-
And if you can get it to work, write an article.