Re: Getting raw audio data from an AIFF file
Re: Getting raw audio data from an AIFF file
- Subject: Re: Getting raw audio data from an AIFF file
- From: Steve Bird <email@hidden>
- Date: Mon, 17 Feb 2003 15:09:22 -0500
On Monday, February 17, 2003, at 11:47 AM, Peter wrote:
I want to skip all headers after the FORM chunk is read and go to the
SSND chunk so I can start playing the audio. While my chunkID is
'SSND' (a four char array), I print it out and get 'SSND\277\260'
instead. Why would there be more than the four chars printing out?
--- there is no terminating NULL character.
--- The reason Apple chose four characters as a data type, and not
three, or seventeen, is speed. Four characters happens to make up a
32-bit integer, which, by a remarkable coincidence, is the word size of
the Macintosh CPU, since day one. So rather than doing four character
compares, and all the associated indexing and stuff, the intent was to
cast the FOUR CHAR CODE into a 32-bit int and do a simple comparison.
----------------------------------------------------------------
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
www.Culverson.com (toll free) 1-877-676-8175
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.