DirectSound buffer lost

Started by
-1 comments, last by Geoffrey 12 years, 5 months ago
Hi,

I'm writing a game using DirectX 9 and DirectSound, and I'm having trouble reproducing the DSERR_BUFFERLOST condition (returned by IDirectSoundBuffer8::Lock and IDirectSoundBuffer8::Play). I need to do this to test whether my game responds correctly. According to the documentation:

Memory for a sound buffer can be lost in certain situations: for example, when buffers are located in sound card memory and another application gains control of the hardware resources. Loss can also occur when an application with the write-primary cooperative level moves to the foreground; in this case, DirectSound makes all other sound buffers lost so that the foreground application can write directly to the primary buffer.[/quote]

I've tried running other games and audio players alongside in the hope that one of them will trigger this, but it hasn't occurred. I'm not sure what else to try. Any suggestions would be appreciated.
The Trouble With Robots - www.digitalchestnut.com/trouble

This topic is closed to new replies.

Advertisement