Sign in to follow this  
Dark Schneider

Question about DirectSound and "Dynamic Voice Management"

Recommended Posts

Dark Schneider    102
When I call to IDirectSoundBuffer8::Play, with the flags DSBPLAY_TERMINATEBY_TIME and DSBPLAY_TERMINATEBY_PRIORITY it is supposed that DirectSound uses 'voice management', and it stops sounds that can't manage. But this is my question, this 'STOP' (named 'buffer termination' in SDK documentation) really do IDirectSoundBuffer8::Stop or only the voice is silenced?, because is not the same, if only the voice is silenced but is only executing, the PLAY CURSOR is updated, and when there is another FREE VOICE, then this sound before stoped can continue. But I don't know how DirectSound do the "Dynamic Voice Management". Can anyone help me?.

Share this post


Link to post
Share on other sites
Dark Schneider    102
I respond to myself, but not 100% sure (only 99%), I think is STOPPED (as with Stop()), because we have the method

IDirectSoundBuffer8::GetStatus

that with the result DSBSTATUS_TERMINATED, is for that purpose.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this