• Advertisement
Sign in to follow this  

DirectSound buffer lost

This topic is 2304 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


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.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement