mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- fixed: For the last block in an MP3 the buffer address was incorrectly incremented.
This commit is contained in:
parent
21af612224
commit
22b70dd222
1 changed files with 2 additions and 2 deletions
|
@ -333,8 +333,8 @@ bool SndFileSong::Read(SoundStream *stream, void *vbuff, int ilen, void *userdat
|
||||||
size_t endlen = song->Decoder->read(buff, endblock);
|
size_t endlen = song->Decoder->read(buff, endblock);
|
||||||
if (endlen != 0)
|
if (endlen != 0)
|
||||||
{
|
{
|
||||||
buff = buff + endblock;
|
buff = buff + endlen;
|
||||||
len -= endblock;
|
len -= endlen;
|
||||||
song->Decoder->seek(song->Loop_Start, false, true);
|
song->Decoder->seek(song->Loop_Start, false, true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue