Re: old mtcoreaudio code doesn't work now
Re: old mtcoreaudio code doesn't work now
- Subject: Re: old mtcoreaudio code doesn't work now
- From: John Draper <email@hidden>
- Date: Sat, 12 Jan 2008 13:59:41 -0800
Mark Pauley wrote:
shtoomDescription.mFormatID = kAudioFormatLinearPCM;
shtoomDescription.mFormatFlags = kLinearPCMFormatFlagIsPacked |
kLinearPCMFormatFlagIsSignedInteger |
kLinearPCMFormatFlagIsBigEndian | kAudioFormatFlagIsNonInterleaved;
In addition to Michael's suggestions, I would suggest that you switch
to using kLinearPCMFormatFlagIsNativeEndian... unless you're writing
to a file of known endian-ness.
We handle the endian-ness in the GSM Codec. It was written long before
Apple Released the Intel version. So the GSM dues the right thing
regardless of the endian byte arrangement.
It's just that the Codec takes the samples as int16, and not Float32.
John
John
_______________________________________________
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