Re: ExtAudioFileSetProperty ClientDataFormat error on iPhone
Re: ExtAudioFileSetProperty ClientDataFormat error on iPhone
- Subject: Re: ExtAudioFileSetProperty ClientDataFormat error on iPhone
- From: Doug Wyatt <email@hidden>
- Date: Mon, 12 Oct 2009 12:26:58 -0700
On Oct 12, 2009, at 12:03 , tahome izwah wrote:
Thanks, but why does the documentation ( http://bit.ly/yKBDB ) say
that kAudioFormatFlagIsFloat is "Available in iPhone OS 2.0 and later"
??
That's just a constant; formats are described exactly the same way on
the desktop and phone. Availability of the constant is not the same
thing as API features described by the constant.
Another way to put this: It's possible to describe some pretty
esoteric PCM formats with an AudioStreamBasicDescription, but
AudioConverter only supports a certain subset of those.
And secondly, is there a reason why the simulator behaves differently
than the device?
There are a lot of ways in which the simulator behaves differently
form the device. In this case it's because even though the simulator
is running all of the audio units etc. in integer/fixed-point formats,
at some point AudioToolbox has to talk to the HAL in floating point,
and it likes to use AudioConverter for those conversions. Sorry that
we didn't find a way to hide that.
Doug
_______________________________________________
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