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
This commit is contained in:
beveloper 2004-02-29 17:34:27 +00:00
parent 63dd01d5f2
commit 34cee003fb

View File

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