AudioFileReadBytes() byte-swapping on iPhone OS
AudioFileReadBytes() byte-swapping on iPhone OS
- Subject: AudioFileReadBytes() byte-swapping on iPhone OS
- From: Brad Garton <email@hidden>
- Date: Tue, 5 Jan 2010 21:25:42 -0500
Hey CoreAudio-folks --
I'm reading stereo aiff files (16-bit) into a buffer using AudioFileReadBytes(), it works fine BUT I notice that I have to do CFSwapInt16() on each short int in the buffer to get intelligible values (same also using AudioFileReadPackets()). I'm using byte and packet offsets of 0, so I don't think I'm misaligning my read. I tried it with aiff files from three independent sources thinking that maybe there was some header weirdness, but seems the same in all cases.
Is this 'nornal'?
IPhone SDK 3.0, developing using XCode 3.2.1 on OSX 10.6.2.
brad
http://music.columbia.edu/~brad
_______________________________________________
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