- fixed a few issues with libmpg123 not correctly reporting the sound's length and issues with repeatedly rewinding the song.

This commit is contained in:
Christoph Oelckers 2017-04-25 21:30:11 +02:00
commit 99579efd0d
7 changed files with 65 additions and 27 deletions

View file

@ -190,7 +190,7 @@ TArray<char> SndFileDecoder::readAll()
return output;
}
bool SndFileDecoder::seek(size_t ms_offset, bool ms)
bool SndFileDecoder::seek(size_t ms_offset, bool ms, bool /*mayrestart*/)
{
size_t smp_offset = ms? (size_t)((double)ms_offset / 1000. * SndInfo.samplerate) : ms_offset;
if(sf_seek(SndFile, smp_offset, SEEK_SET) < 0)