I am making an application in which I will:
- Recording from a microphone and performing real-time processing at the input
- MP3 file playback (regular song) but real-time output control
- From time to time, I will also need to play additional sounds over this song, but I think I can do this by simply adding buffers.
In short, I need to have circular buffers for recording and playback, and I need to “feed” the output buffer every 20 ms or so with new data that is about to be played.
I watched DirectSound and it does not seem to help. Reading and writing output buffers seems very similar to Win32, the only place where, apparently, this would help to play “extra sounds” over the main song.
Should I use DirectSound, or should I go straight to the raw Windows APIs?
Can DirectSound do anything for me?
Thank Advance
source
share