Re: Inconsistencies with large WAV file
Re: Inconsistencies with large WAV file
- Subject: Re: Inconsistencies with large WAV file
- From: tahome izwah <email@hidden>
- Date: Thu, 3 Dec 2009 06:33:51 +0100
Hi Doug, the data chunk size in the file is 0x601AD6DB, which is
indeed 3,688,241,760 after performing byte swapping.
I'll try the workaround and report back with my findings.
Thank you again!
--th
2009/12/3 Doug Wyatt <email@hidden>:
> Tahome, can you hexdump the file, find the beginning of the 'data' chunk and get its exact size?
>
> struct WAVEDataChunk {
> UInt32 chunkID;
> SInt32 chunkSize; // signed. no wonder :-(
> };
>
> I'm really hoping it is 3,688,241,760, because if it is, then the workaround is:
>
> SInt64 numPackets;
> (Ext)AudioFileGetProperty( ... &numPackets);
>
> if (numPackets < 0) {
> numPackets = (4294967296LL + bytesPerFrame * numPackets) / bytesPerFrame;
> }
>
>
_______________________________________________
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