mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
- Fixed: Crash when automatically switching sound backends due to failure.
This commit is contained in:
parent
409525cde6
commit
1fcb9fcf06
1 changed files with 2 additions and 0 deletions
|
@ -283,6 +283,7 @@ void I_InitSound ()
|
|||
if ((!GSnd || !GSnd->IsValid()) && IsOpenALPresent())
|
||||
{
|
||||
Printf (TEXTCOLOR_RED"FMod Ex Sound init failed. Trying OpenAL.\n");
|
||||
I_CloseSound();
|
||||
GSnd = new OpenALSoundRenderer;
|
||||
snd_backend = "openal";
|
||||
}
|
||||
|
@ -300,6 +301,7 @@ void I_InitSound ()
|
|||
if ((!GSnd || !GSnd->IsValid()) && IsFModExPresent())
|
||||
{
|
||||
Printf (TEXTCOLOR_RED"OpenAL Sound init failed. Trying FMod Ex.\n");
|
||||
I_CloseSound();
|
||||
GSnd = new FMODSoundRenderer;
|
||||
snd_backend = "fmod";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue