aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorJoni Vähämäki2014-07-26 14:30:56 +0300
committerJoni Vähämäki2014-07-26 14:30:56 +0300
commit8564c7ec0ae4f7a610e977ba8f84eeb2626d3d9d (patch)
tree15d121b5a22c12873562990172e87b2778998772 /audio
parent5f2687fdb3a1f5543b4214db0170317c039e60ac (diff)
downloadscummvm-rg350-8564c7ec0ae4f7a610e977ba8f84eeb2626d3d9d.tar.gz
scummvm-rg350-8564c7ec0ae4f7a610e977ba8f84eeb2626d3d9d.tar.bz2
scummvm-rg350-8564c7ec0ae4f7a610e977ba8f84eeb2626d3d9d.zip
AUDIO: Increment total play time when decoding MP3 data.
Diffstat (limited to 'audio')
-rw-r--r--audio/decoders/mp3.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/decoders/mp3.cpp b/audio/decoders/mp3.cpp
index 091f64569d..f66b20e4ae 100644
--- a/audio/decoders/mp3.cpp
+++ b/audio/decoders/mp3.cpp
@@ -166,6 +166,8 @@ void MP3Stream::decodeMP3Data() {
}
}
+ // Sum up the total playback time so far
+ mad_timer_add(&_totalTime, _frame.header.duration);
// Synthesize PCM data
mad_synth_frame(&_synth, &_frame);
_posInFrame = 0;