pass the loop flag to the XMP player.

This commit is contained in:
Christoph Oelckers 2024-10-05 09:10:48 +02:00
parent 05601a9ee1
commit fd03bca3ff

View file

@ -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)