From fd03bca3ffc9556e722f5b2c0a0e52e2681b6dc0 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 5 Oct 2024 09:10:48 +0200 Subject: [PATCH] pass the loop flag to the XMP player. --- source/streamsources/music_libxmp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/streamsources/music_libxmp.cpp b/source/streamsources/music_libxmp.cpp index fe8ab52..0186bb5 100644 --- a/source/streamsources/music_libxmp.cpp +++ b/source/streamsources/music_libxmp.cpp @@ -128,7 +128,7 @@ bool XMPSong::GetData(void *buffer, size_t len) if ((len / 4) < int16_buffer.size()) int16_buffer.resize(len / 4); - int ret = xmp_play_buffer(context, (void*)int16_buffer.data(), len / 2, 0); + int ret = xmp_play_buffer(context, (void*)int16_buffer.data(), len / 2, m_Looping? INT_MAX : 0); xmp_set_player(context, XMP_PLAYER_INTERP, dumbConfig.mod_interp); if (ret >= 0)