diff options
author | Johannes Schickel | 2010-08-22 12:04:44 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-08-22 12:04:44 +0000 |
commit | 5969138eda602048c8537b960b08d130a703d51c (patch) | |
tree | f816c25debe54752f33dc41763ad19667a67ce9c | |
parent | a503f9223a4b87320f30f7264994a55a265a4f78 (diff) | |
download | scummvm-rg350-5969138eda602048c8537b960b08d130a703d51c.tar.gz scummvm-rg350-5969138eda602048c8537b960b08d130a703d51c.tar.bz2 scummvm-rg350-5969138eda602048c8537b960b08d130a703d51c.zip |
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
-rw-r--r-- | sound/decoders/mp3.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/decoders/mp3.cpp b/sound/decoders/mp3.cpp index f22eae5102..848ee7e280 100644 --- a/sound/decoders/mp3.cpp +++ b/sound/decoders/mp3.cpp @@ -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); } |