aboutsummaryrefslogtreecommitdiff
path: root/audio/decoders/mp3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'audio/decoders/mp3.cpp')
-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;