Does the AudioConverter on the iPhone not support float ? BUG ?
Does the AudioConverter on the iPhone not support float ? BUG ?
- Subject: Does the AudioConverter on the iPhone not support float ? BUG ?
- From: Mark's Studio <email@hidden>
- Date: Wed, 22 Apr 2009 00:16:17 +0200
I am trying to get the ExtAudioFileRead() to return floating point
from a IMA4 file,
but when i setup the stream as below and try to set the client format
i get a fmt? error,
Does the audioconverter on the iPhone not support float ?
I remember having the same problem trying to get the AUremoteIO to
return float.
CAStreamBasicDescription floatAudioFormat;
floatAudioFormat.mSampleRate = 44100.00;
floatAudioFormat.mFormatID = kAudioFormatLinearPCM;
floatAudioFormat.mFormatFlags = kAudioFormatFlagsNativeFloatPacked;
floatAudioFormat.mFramesPerPacket = 1;
floatAudioFormat.mChannelsPerFrame = 1;
floatAudioFormat.mBitsPerChannel = 32;
floatAudioFormat.mBytesPerPacket = 4;
floatAudioFormat.mBytesPerFrame = 4;
If i set the floatAudioFormat.SetCanonical(1,false); it works
Peter Mark
Mark's Recording Studio A/S
Lundeskovsvej 3
2900 Hellerup
Denmark
Tel: +45 35366078
Fax: +45 35366038
Mobile: +45 20416018
www.marks-studio.dk
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