mirror of
https://github.com/ZDoom/ZMusic.git
synced 2025-04-07 18:01:35 +00:00
pass the loop flag to the XMP player.
This commit is contained in:
parent
05601a9ee1
commit
fd03bca3ff
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue