diff --git a/source/blood/src/demo.cpp b/source/blood/src/demo.cpp index 795f4907c..c6b40d193 100644 --- a/source/blood/src/demo.cpp +++ b/source/blood/src/demo.cpp @@ -264,6 +264,7 @@ bool CDemo::SetupPlayback(const char *pzFile) #endif at0 = 0; at1 = 1; + M_UnpauseSound(); return 1; } diff --git a/source/common/menu/menu.cpp b/source/common/menu/menu.cpp index 5e884eed4..7a1f0aedb 100644 --- a/source/common/menu/menu.cpp +++ b/source/common/menu/menu.cpp @@ -920,6 +920,11 @@ void M_Drawer (void) // //============================================================================= +void M_UnpauseSound() +{ + GSnd->SetSfxPaused(false, PAUSESFX_MENU); +} + void M_ClearMenus (bool final) { if (menuactive == MENU_Off) return; @@ -936,7 +941,7 @@ void M_ClearMenus (bool final) } DMenu::CurrentMenu = nullptr; menuactive = MENU_Off; - GSnd->SetSfxPaused(false, PAUSESFX_MENU); + M_UnpauseSound(); if (!final) { mouseGrabInput(true); diff --git a/source/common/menu/menu.h b/source/common/menu/menu.h index 51458572c..d9a491473 100644 --- a/source/common/menu/menu.h +++ b/source/common/menu/menu.h @@ -783,6 +783,7 @@ void M_MenuSound(EMenuSounds snd); void M_Autosave(); bool M_Active(); void M_DeinitMenus(); +void M_UnpauseSound(); void I_SetMouseCapture();