mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Clear audio graph on I_ShutdownSound
Fixes a crash when destroying SDL AudioStreams under SDL3 and SDL2-compat.
This commit is contained in:
parent
da43100681
commit
e7f0c1e79e
1 changed files with 14 additions and 0 deletions
|
|
@ -385,6 +385,20 @@ void I_ShutdownSound(void)
|
||||||
g_input_device_id = 0;
|
g_input_device_id = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
master_gain = nullptr;
|
||||||
|
master = nullptr;
|
||||||
|
mixer_sound_effects = nullptr;
|
||||||
|
mixer_music = nullptr;
|
||||||
|
mixer_voice = nullptr;
|
||||||
|
music_player = nullptr;
|
||||||
|
resample_music_player = nullptr;
|
||||||
|
gain_sound_effects = nullptr;
|
||||||
|
gain_music_player = nullptr;
|
||||||
|
gain_music_channel = nullptr;
|
||||||
|
gain_voice_channel = nullptr;
|
||||||
|
sound_effect_channels.clear();
|
||||||
|
player_voice_channels.clear();
|
||||||
|
|
||||||
SDL_QuitSubSystem(SDL_INIT_AUDIO);
|
SDL_QuitSubSystem(SDL_INIT_AUDIO);
|
||||||
|
|
||||||
sound_started = false;
|
sound_started = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue