diff options
Diffstat (limited to 'sound/mp3.cpp')
-rw-r--r-- | sound/mp3.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/mp3.cpp b/sound/mp3.cpp index 792f8f6bf4..4c9f238eed 100644 --- a/sound/mp3.cpp +++ b/sound/mp3.cpp @@ -64,7 +64,7 @@ public: bool endOfData() const { return eosIntern(); } bool isStereo() const { return _isStereo; } - + int getRate() const { return _frame.header.samplerate; } #ifdef __SYMBIAN32__ // Used to store the last position stream was read for symbian @@ -193,7 +193,7 @@ bool MP3InputStream::init() { warning("MP3InputStream: Cannot determine number of channels"); return false; } - + return true; } @@ -256,7 +256,7 @@ void MP3InputStream::refill(bool first) { mad_timer_t frame_duration = _frame.header.duration; mad_timer_negate(&frame_duration); mad_timer_add(&_duration, frame_duration); - + if (!first && mad_timer_compare(_duration, mad_timer_zero) <= 0) _size = -1; // Mark for EOF } |