call I_OAL_ReinitSound in I_PCS_ReinitSound (#1207)

This commit is contained in:
Roman Fomin 2023-09-14 18:23:57 +07:00 committed by GitHub
parent 0d8de8c7f2
commit f991383e5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,7 +324,7 @@ static void UnregisterCallback(void)
alDeleteBuffers(1, &callback_buffer); alDeleteBuffers(1, &callback_buffer);
} }
static boolean I_PCS_ReinitSound(void) static void InitPCSound(void)
{ {
mixing_freq = SND_SAMPLERATE; mixing_freq = SND_SAMPLERATE;
@ -337,6 +337,16 @@ static boolean I_PCS_ReinitSound(void)
{ {
sound_lock = SDL_CreateMutex(); sound_lock = SDL_CreateMutex();
} }
}
static boolean I_PCS_ReinitSound(void)
{
if (!I_OAL_ReinitSound())
{
return false;
}
InitPCSound();
return true; return true;
} }
@ -348,7 +358,7 @@ static boolean I_PCS_InitSound(void)
return false; return false;
} }
I_PCS_ReinitSound(); InitPCSound();
return true; return true;
} }