- fixed compilation NO_OPENAL option enabled

This commit is contained in:
alexey.lysiuk 2020-02-04 16:16:49 +02:00
parent a534a8490b
commit 14ef8e873e
2 changed files with 4 additions and 0 deletions

View file

@ -1508,6 +1508,7 @@ void M_CreateMenus()
{
I_BuildMIDIMenuList(*opt);
}
#ifndef NO_OPENAL
opt = OptionValues.CheckKey(NAME_Aldevices);
if (opt != nullptr)
{
@ -1518,6 +1519,7 @@ void M_CreateMenus()
{
I_BuildALResamplersList(*opt);
}
#endif // !NO_OPENAL
}
//=============================================================================

View file

@ -259,10 +259,12 @@ void I_InitSound ()
return;
}
#ifndef NO_OPENAL
if (IsOpenALPresent())
{
GSnd = new OpenALSoundRenderer;
}
#endif // !NO_OPENAL
if (!GSnd || !GSnd->IsValid ())
{