Revert change to sound_reconfigure

that caused a de reference exception after MP3 playback.
This commit is contained in:
Robin Jones 2024-10-25 13:49:56 +01:00
parent 3e37991b73
commit f5521031e4

View File

@ -19,7 +19,10 @@ static bool sfx_enabled = false;
static void sound_reconfigure (int frequency) {
if ((frequency > 0) && (audio_get_frequency() != frequency)) {
sound_deinit();
if (sound_initialized) {
mixer_close();
audio_close();
}
audio_init(frequency, NUM_BUFFERS);
mixer_init(NUM_CHANNELS);
mp3player_mixer_init();