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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user