Re: Inconsistencies with large WAV file
Re: Inconsistencies with large WAV file
- Subject: Re: Inconsistencies with large WAV file
- From: Brian Willoughby <email@hidden>
- Date: Wed, 2 Dec 2009 17:39:05 -0800
If this turns out to be a bug in the AudioFile source, then you
should probably look for something similar with AIFF, in addition to
WAV. When I first started working with AIFF (long before AudioFile),
I made the assumption that the chuckSize should be UInt32, since
there's no meaningful need for negative sizes. Apparently, however,
the AIFF specification states that the chunkSize is only 31 bits, and
is technically undefined for 32 significant bits. It might be safer
to use UInt32, however, since at least this would not result in the
compiler producing casts for negative numbers. Anyway, I'm sure you
can figure it out, I just wanted to suggest that while you're in
there reviewing the WAV code, you might want to spend a little time
on the AIFF code to keep everything up to date.
Brian Willoughby
Sound Consulting
On Dec 2, 2009, at 16:18, Doug Wyatt wrote:
struct WAVEDataChunk {
UInt32 chunkID;
SInt32 chunkSize; // signed. no wonder :-(
};
_______________________________________________
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