mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- fixed compilation NO_OPENAL option enabled
This commit is contained in:
parent
a534a8490b
commit
14ef8e873e
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
|
|
@ -259,10 +259,12 @@ void I_InitSound ()
|
|||
return;
|
||||
}
|
||||
|
||||
#ifndef NO_OPENAL
|
||||
if (IsOpenALPresent())
|
||||
{
|
||||
GSnd = new OpenALSoundRenderer;
|
||||
}
|
||||
#endif // !NO_OPENAL
|
||||
|
||||
if (!GSnd || !GSnd->IsValid ())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue