mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 14:51:40 +00:00
MP3: Fix seeking.
Formerly we did not read the first chunk of MP3 data after seeking. This resulted in incorrect sound output in the Freddy Pharkas demo when the sound was compressed with MP3 for example. svn-id: r52272
This commit is contained in:
parent
a503f9223a
commit
5969138eda
@ -233,6 +233,8 @@ bool MP3Stream::seek(const Timestamp &where) {
|
||||
while (mad_timer_compare(destination, _totalTime) > 0 && _state != MP3_STATE_EOS)
|
||||
readHeader();
|
||||
|
||||
decodeMP3Data();
|
||||
|
||||
return (_state != MP3_STATE_EOS);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user