From 34cee003fb4b348760c099c0bd27b1427279af08 Mon Sep 17 00:00:00 2001 From: beveloper Date: Sun, 29 Feb 2004 17:34:27 +0000 Subject: [PATCH] fixed reporting of frameCount, removed truncation of reported duration git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6802 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/media/plugins/musepack/MusePackReader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/add-ons/media/plugins/musepack/MusePackReader.cpp b/src/add-ons/media/plugins/musepack/MusePackReader.cpp index 7013f9f098..473e01f666 100644 --- a/src/add-ons/media/plugins/musepack/MusePackReader.cpp +++ b/src/add-ons/media/plugins/musepack/MusePackReader.cpp @@ -121,9 +121,9 @@ MusePackReader::GetStreamInfo(void *cookie, int64 *_frameCount, bigtime_t *_dura if (cookie != NULL) return B_BAD_VALUE; - *_frameCount = fInfo.simple.Frames; - *_duration = bigtime_t(1000.0 * (fInfo.simple.Frames - 0.5) * FRAMELEN - / (fInfo.simple.SampleFreq / 1000) + 0.5); + *_frameCount = FRAMELEN * (int64)fInfo.simple.Frames; + *_duration = bigtime_t(1000.0 * fInfo.simple.Frames * FRAMELEN + / (fInfo.simple.SampleFreq / 1000.0) + 0.5); *format = fFormat;