mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
call I_OAL_ReinitSound in I_PCS_ReinitSound (#1207)
This commit is contained in:
parent
0d8de8c7f2
commit
f991383e5c
@ -324,7 +324,7 @@ static void UnregisterCallback(void)
|
||||
alDeleteBuffers(1, &callback_buffer);
|
||||
}
|
||||
|
||||
static boolean I_PCS_ReinitSound(void)
|
||||
static void InitPCSound(void)
|
||||
{
|
||||
mixing_freq = SND_SAMPLERATE;
|
||||
|
||||
@ -337,6 +337,16 @@ static boolean I_PCS_ReinitSound(void)
|
||||
{
|
||||
sound_lock = SDL_CreateMutex();
|
||||
}
|
||||
}
|
||||
|
||||
static boolean I_PCS_ReinitSound(void)
|
||||
{
|
||||
if (!I_OAL_ReinitSound())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
InitPCSound();
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -348,7 +358,7 @@ static boolean I_PCS_InitSound(void)
|
||||
return false;
|
||||
}
|
||||
|
||||
I_PCS_ReinitSound();
|
||||
InitPCSound();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user