Clear audio graph on I_ShutdownSound

Fixes a crash when destroying SDL AudioStreams under SDL3 and
SDL2-compat.
This commit is contained in:
Eidolon 2025-01-30 17:00:03 -06:00
parent da43100681
commit e7f0c1e79e

View file

@ -385,6 +385,20 @@ void I_ShutdownSound(void)
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);
sound_started = false;