Jump to content
  • Advertisement
Sign in to follow this  
Geoffrey

DirectSound buffer lost

This topic is 2596 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

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.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!