iPhone sample format : can float be supported directly?
iPhone sample format : can float be supported directly?
- Subject: iPhone sample format : can float be supported directly?
- From: Stéphane Letz <email@hidden>
- Date: Fri, 19 Feb 2010 17:27:25 +0100
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