- 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:
parent
f866e0f02f
commit
99579efd0d
7 changed files with 65 additions and 27 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue