From 230da2e2b9c4da6687422ac5535e1b7db213b944 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 18 Oct 2019 10:25:24 +0300 Subject: [PATCH] - fixed SPC music looping after update to GME 0.6.2 Why was the default player setup changed at all? https://forum.zdoom.org/viewtopic.php?t=65863 --- libraries/zmusic/streamsources/music_gme.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/zmusic/streamsources/music_gme.cpp b/libraries/zmusic/streamsources/music_gme.cpp index a3af553b1..a22e94868 100644 --- a/libraries/zmusic/streamsources/music_gme.cpp +++ b/libraries/zmusic/streamsources/music_gme.cpp @@ -144,6 +144,11 @@ StreamSource *GME_OpenSong(MusicIO::FileInterface *reader, const char *fmt, int } gme_set_stereo_depth(emu, std::min(std::max(miscConfig.gme_stereodepth, 0.f), 1.f)); gme_set_fade(emu, -1); // Enable infinite loop + +#if GME_VERSION >= 0x602 + gme_set_autoload_playback_limit(emu, 0); +#endif // GME_VERSION >= 0x602 + return new GMESong(emu, sample_rate); }