AUDIO: Increment total play time when decoding MP3 data.

This commit is contained in:
Joni Vähämäki 2014-07-26 14:30:56 +03:00
parent 5f2687fdb3
commit 8564c7ec0a

View File

@ -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;