fixed duration calculation for compressed data. The three .au test file with muLaw compression that I have play ok now

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6588 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper
2004-02-14 01:27:47 +00:00
parent 39be96dee0
commit 5524db596f
@@ -160,7 +160,7 @@ auReader::Sniff(int32 *streamCount)
return B_ERROR;
}
fFrameCount = fDataSize / (fChannelCount * fBitsPerSample);
fFrameCount = (8 * fDataSize) / (fChannelCount * fBitsPerSample);
fDuration = (1000000LL * fFrameCount) / fFrameRate;
fBitsPerFrame = fChannelCount * fBitsPerSample;
fBlockAlign = fBitsPerFrame;