diff options
Diffstat (limited to 'sound/mp3.cpp')
-rw-r--r-- | sound/mp3.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/mp3.cpp b/sound/mp3.cpp index 0249032e2f..ba21436de4 100644 --- a/sound/mp3.cpp +++ b/sound/mp3.cpp @@ -117,7 +117,7 @@ MP3InputStream::MP3InputStream(Common::SeekableReadStream *inStream, bool dispos // Calculate play time mad_timer_t length; - mad_timer_set(&length, 0, 0, 1000); + mad_timer_set(&length, 0, 0, 1000); mad_timer_add(&length, start); mad_timer_negate(&length); @@ -175,7 +175,7 @@ MP3InputStream::MP3InputStream(Common::SeekableReadStream *inStream, bool dispos } _totalPlayTime = mad_timer_count(length, MAD_UNITS_MILLISECONDS); - + if (numLoops && mad_timer_sign(length) >= 0) _totalPlayTime *= numLoops; else |