RE: [GD-Windows] Streaming WAVE audio
Brought to you by:
vexxed72
From: Brian H. <bri...@py...> - 2002-04-28 00:38:40
|
Woo-hoo, found it! And, of course, it was stupid programmer syndrome. Specifically, I wasn't dispatching a buffer after filling it, instead I was waiting for it to get dispatched "when necessary". My WOM_DONE handler was doing this: waveOutWrite( nextBuffer ); fillBuffer( completedBuffer ); Changing it to this fixed it: waveOutWrite( nextBuffer ); fillBuffer( completedBuffer ); waveOutWrite( completedBuffer ); //keep the chain going I was counting on/assuming that the "waveOutWrite( nextBuffer )" would eventually dispatch a buffer that was filled NUM_BUFFERS-1 notifications ago, which apparently wasn't the case. Or maybe something else was wrong, but this fixes it for now. Seat of the pants, baby! Brian |