From 2b8bca307cbda1207c6129ad8abb21da26f75f26 Mon Sep 17 00:00:00 2001 From: alufolie91 Date: Wed, 9 Aug 2023 16:09:34 +0200 Subject: [PATCH] Fix SPC looping on libgme versions >= 0.6.3 See: https://git.do.srb2.org/STJr/SRB2/-/merge_requests/1302 --- src/sdl/mixer_sound.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sdl/mixer_sound.c b/src/sdl/mixer_sound.c index a29484c98..4e11af3e8 100644 --- a/src/sdl/mixer_sound.c +++ b/src/sdl/mixer_sound.c @@ -1090,6 +1090,9 @@ boolean I_PlaySong(boolean looping) if (gme) { gme_equalizer_t eq = {GME_TREBLE, GME_BASS, 0,0,0,0,0,0,0,0}; +#if GME_VERSION >= 0x000603 + gme_set_autoload_playback_limit(gme, 0); +#endif gme_set_equalizer(gme, &eq); gme_start_track(gme, 0); current_track = 0;