Fix build with WITH_OPENAL disabled.

This closes issue #192.
This commit is contained in:
Yamagi Burmeister 2017-05-13 16:51:39 +02:00
parent 8af427b0c9
commit 6119591c6a
3 changed files with 6 additions and 0 deletions

View file

@ -97,10 +97,12 @@ Con_ToggleConsole_f(void)
Key_ClearTyping(); Key_ClearTyping();
Con_ClearNotify(); Con_ClearNotify();
#ifdef USE_OPENAL
if (cl.cinematic_file) if (cl.cinematic_file)
{ {
AL_UnqueueRawSamples(); AL_UnqueueRawSamples();
} }
#endif
if (cls.key_dest == key_console) if (cls.key_dest == key_console)
{ {

View file

@ -151,10 +151,12 @@ M_PushMenu(void (*draw)(void), const char *(*key)(int))
Cvar_Set("paused", "1"); Cvar_Set("paused", "1");
} }
#ifdef USE_OPENAL
if (cl.cinematic_file) if (cl.cinematic_file)
{ {
AL_UnqueueRawSamples(); AL_UnqueueRawSamples();
} }
#endif
/* if this menu is already open (and on top), /* if this menu is already open (and on top),
close it => toggling behaviour */ close it => toggling behaviour */

View file

@ -760,7 +760,9 @@ OGG_PauseCmd(void)
ogg_numbufs = 0; ogg_numbufs = 0;
} }
#ifdef USE_OPENAL
AL_UnqueueRawSamples(); AL_UnqueueRawSamples();
#endif
} }
/* /*