- fixed: For the last block in an MP3 the buffer address was incorrectly incremented.

This commit is contained in:
Christoph Oelckers 2017-04-27 10:08:24 +02:00
parent 21af612224
commit 22b70dd222

View file

@ -333,8 +333,8 @@ bool SndFileSong::Read(SoundStream *stream, void *vbuff, int ilen, void *userdat
size_t endlen = song->Decoder->read(buff, endblock);
if (endlen != 0)
{
buff = buff + endblock;
len -= endblock;
buff = buff + endlen;
len -= endlen;
song->Decoder->seek(song->Loop_Start, false, true);
}
else