DirectSound: keep the main buffer active.
This was actually already considered in the surrounding code. I just had to uncomment it. This recommendation has remained consistent in the Microsoft documentation since this code was written. It's safe to uncomment it to ensure our main buffer stays active, since shutdown of the mixer engine is unwanted.
This commit is contained in:
@@ -100,7 +100,7 @@ void DSound::SetPrimaryBufferMode()
|
|||||||
*
|
*
|
||||||
* However, I just added the above code and I don't want to change more until it's tested.
|
* However, I just added the above code and I don't want to change more until it's tested.
|
||||||
*/
|
*/
|
||||||
// pBuffer->Play( 0, 0, DSBPLAY_LOOPING );
|
pBuffer->Play( 0, 0, DSBPLAY_LOOPING );
|
||||||
|
|
||||||
pBuffer->Release();
|
pBuffer->Release();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user