Skip to content

Commit

Permalink
pass the loop flag to the XMP player.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Oct 5, 2024
1 parent 05601a9 commit fd03bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/streamsources/music_libxmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fd03bca

Please sign in to comment.