Re: iPhone sample format : can float be supported directly?
Re: iPhone sample format : can float be supported directly?
- Subject: Re: iPhone sample format : can float be supported directly?
- From: William Stewart <email@hidden>
- Date: Fri, 19 Feb 2010 10:28:34 -0800
we don't support floating point sample formats on current versions of
the iphone.
you want either 8.24 fixed or 16 bit integer
On Feb 19, 2010, at 8:27 AM, Stéphane Letz wrote:
Hi,
We are trying to port CoreAudio code (that was developed on OSX) on
the iPhone. Basically we were using AUHal Unit to develop a duplex
module and using :
AudioUnitSetProperty(fAUHAL, kAudioUnitProperty_StreamFormat, ....)
kind of code to set up the desired format for our stream, so in our
case "non interleaved float samples".
When porting the code on the iPhone, using
"kAudioUnitSubType_RemoteIO" instead of
"kAudioUnitSubType_HALOutput", then :
AudioUnitSetProperty(fAUHAL, kAudioUnitProperty_StreamFormat, ....)
when wanting a float format (srcFormat.mFormatFlags =
kAudioFormatFlagsNativeFloatPacked |
kLinearPCMFormatFlagIsNonInterleaved;) now fails with a
kAudioUnitErr_FormatNotSupported error.
Is there any kind of restriction on what can be done on the iPhone ?
(but the page http://developer.apple.com/iphone/library/documentation/MusicAudio/Reference/AudioConverterServicesReference/Reference/reference.html
seems to say that AudioConverter are available on the iPhone..)
Thanks
Stéphane Letz
_______________________________________________
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
_______________________________________________
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