mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 05:21:02 +00:00
Fixed problem with looping of particular music tracks
Part of https://forum.zdoom.org/viewtopic.php?t=56333
This commit is contained in:
parent
26325edddc
commit
bdac1c3ad1
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ bool SndFileSong::Read(SoundStream *stream, void *vbuff, int ilen, void *userdat
|
|||
if (currentpos + framestoread > song->Loop_End)
|
||||
{
|
||||
size_t endblock = (song->Loop_End - currentpos) * song->Channels * 2;
|
||||
size_t endlen = song->Decoder->read(buff, endblock);
|
||||
size_t endlen = song->Decoder->read(buff, 0 == endblock ? len : endblock);
|
||||
if (endlen != 0)
|
||||
{
|
||||
buff = buff + endlen;
|
||||
|
|
Loading…
Reference in a new issue