mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 13:41:05 +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);
|
||||
if (endlen != 0)
|
||||
{
|
||||
buff = buff + endblock;
|
||||
len -= endblock;
|
||||
buff = buff + endlen;
|
||||
len -= endlen;
|
||||
song->Decoder->seek(song->Loop_Start, false, true);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue