From 8564c7ec0ae4f7a610e977ba8f84eeb2626d3d9d Mon Sep 17 00:00:00 2001 From: Joni Vähämäki Date: Sat, 26 Jul 2014 14:30:56 +0300 Subject: AUDIO: Increment total play time when decoding MP3 data. --- audio/decoders/mp3.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'audio/decoders') 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; -- cgit v1.2.3