CAAudioFile bug (cont)
CAAudioFile bug (cont)
- Subject: CAAudioFile bug (cont)
- From: Antoine Misout <email@hidden>
- Date: Sun, 29 May 2005 12:14:53 -0400
This might be useful to some:
It seems that one have to change:
SInt64 CAAudioFile::GetNumberFrames() const
{
[...]
return mFileDataFormat.mFramesPerPacket * GetNumberPackets();
}
to
SInt64 CAAudioFile::GetNumberFrames() const
{
[...]
return mFileDataFormat.mFramesPerPacket * GetNumberPackets() -
mFrame0Offset;
}
to get the proper number of frames for certain files (aac in my test
case). Didn't break anything else as far as I could test (wav/aiff/mp3).
Antoine
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden