diff --git a/src/client/cl_console.c b/src/client/cl_console.c index 3860695c..10d69de1 100644 --- a/src/client/cl_console.c +++ b/src/client/cl_console.c @@ -97,10 +97,12 @@ Con_ToggleConsole_f(void) Key_ClearTyping(); Con_ClearNotify(); +#ifdef USE_OPENAL if (cl.cinematic_file) { AL_UnqueueRawSamples(); } +#endif if (cls.key_dest == key_console) { diff --git a/src/client/menu/menu.c b/src/client/menu/menu.c index 9ae37471..1f8c3a37 100644 --- a/src/client/menu/menu.c +++ b/src/client/menu/menu.c @@ -151,10 +151,12 @@ M_PushMenu(void (*draw)(void), const char *(*key)(int)) Cvar_Set("paused", "1"); } +#ifdef USE_OPENAL if (cl.cinematic_file) { AL_UnqueueRawSamples(); } +#endif /* if this menu is already open (and on top), close it => toggling behaviour */ diff --git a/src/client/sound/ogg.c b/src/client/sound/ogg.c index 6c1b906b..4f521f79 100644 --- a/src/client/sound/ogg.c +++ b/src/client/sound/ogg.c @@ -760,7 +760,9 @@ OGG_PauseCmd(void) ogg_numbufs = 0; } +#ifdef USE_OPENAL AL_UnqueueRawSamples(); +#endif } /*