Hi there - not sure if this belongs in the Windows Programming board...
I have an old project which uses the WaveOut API to stream PCM audio using a double-buffering scheme.
I've recently decided to rewrite this project, but I seem to have broken something in the process.
The two problems I'm encountering:
1.) No audio is being played (no sound)
2.) WOM_DONE messages are never sent to the WaveOutProc procedure.
As I understand it, WaveOutProc is called when one of three different things occur: When a device is opened, when it is closed, and when a buffer/block finishes.
I've added breakpoints to my project, and my WaveOutProc procedure never receives a WOM_DONE message - the whole application just sits there and does nothing, not playing any sound.
I realize it's hard to answer this question without any of my code, but at the same time I don't want to paste my whole project - not knowing where to look and what to omit. I suppose what I'm asking is: Under what circumstances are WOM_DONE messages not being sent? Could it be that my buffer(s) just take a super long time to finish, or will never finish at all? I checked the size of my buffer(s) though, and they aren't ridiculously huge...