From 6eb58bbd6688dfb59453cd11acd64e31d46e661b Mon Sep 17 00:00:00 2001 From: sukibaby <163092272+sukibaby@users.noreply.github.com> Date: Tue, 10 Jun 2025 21:00:17 -0700 Subject: [PATCH] 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. --- src/arch/Sound/DSoundHelpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/Sound/DSoundHelpers.cpp b/src/arch/Sound/DSoundHelpers.cpp index c7b0e95150..1474ea6c89 100644 --- a/src/arch/Sound/DSoundHelpers.cpp +++ b/src/arch/Sound/DSoundHelpers.cpp @@ -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. */ -// pBuffer->Play( 0, 0, DSBPLAY_LOOPING ); + pBuffer->Play( 0, 0, DSBPLAY_LOOPING ); pBuffer->Release(); }