ExtAudioFileCreate / Write conversion question on iOS 3.1.3
ExtAudioFileCreate / Write conversion question on iOS 3.1.3
- Subject: ExtAudioFileCreate / Write conversion question on iOS 3.1.3
- From: Frank Mantek <email@hidden>
- Date: Wed, 9 Feb 2011 19:32:17 +0100
I have code that runs just fine on the newer SDKs now that produces a nice little mp4 file. Running this on the original iphone 2g though fails.
Originally I thought i create an kAudioFormatMPEG4AAC audiodescription, with the mainformat as a flag, and put this in a kAudioFileMPEG4Type container.
The incoming client data is the linear PCM in stereo.
Using ExtAudioFileWrite works fine on iOS4 etc. But on 3.1.3 it fails with a format error, so some searching later i figure that there is probably no converter available on the iOS3.1.3 version.
So I enumerate the available formats:
2011-02-09 19:28:51.655 BeatFactor[1233:5f27] -[SoundResourceManager startRecording]:format : 1634492791 - A-Law 2:1
2011-02-09 19:28:51.684 BeatFactor[1233:5f27] -[SoundResourceManager startRecording]:format : 1768710755 - ACILBCDecoder-'ilbc'
2011-02-09 19:28:51.712 BeatFactor[1233:5f27] -[SoundResourceManager startRecording]:format : 1768775988 - IMA 4:1
2011-02-09 19:28:51.745 BeatFactor[1233:5f27] -[SoundResourceManager startRecording]:format : 1819304813 - Linear PCM
2011-02-09 19:28:51.775 BeatFactor[1233:5f27] -[SoundResourceManager startRecording]:format : 1970037111 - μ-Law 2:1
those are the 5 i find. But, using them in the ExtAudioCreateFile call fails with a format error in that call (ok, i tried IMA4.1 and Linear PCM).
Can someone shed some light no this? Is there a list/blog/webpage that lists formats that work on this ancient platform?
Tia
Frank _______________________________________________
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