Generating A Dynamic Sound

Jul 7, 2011 at 2:02pm
Does anyone know of any method to dynamically generate a sound (specifying it's frequency, amplitude, among other things)?

I've googled around and looked through some of the MSDN documentation on DirectShow but I can't seem to find anything.

Thanks in advance.
Jul 7, 2011 at 2:30pm
Use any kind of sound streaming lib such as DirectSound, or the waveOut series of functions (search MSDN for waveOutOpen).

They let you provide a raw PCM waveform. Just provide your own that has any characteristics you want.
Jul 7, 2011 at 4:36pm
Maybe the Beep() function satisfies your requirement: http://msdn.microsoft.com/en-us/library/ms679277(VS.85).aspx .
Jul 11, 2011 at 9:54am
thanks for the help guys! :D
Topic archived. No new replies allowed.