ExtAudioFileSetProperty fails with bizarre error code
ExtAudioFileSetProperty fails with bizarre error code
- Subject: ExtAudioFileSetProperty fails with bizarre error code
- From: Stevo Brock <email@hidden>
- Date: Fri, 28 Oct 2011 15:43:43 -0700
We're trying to convert simple uncompressed audio to AAC using CoreAudio. All iPhones, iPod Touches, and iPad 1s work great. We're only seeing an issue on an iPad 2 running iOS 4.3.5 when running an iPhone app.
mFileFormat is:
sample rate = 11025
format ID = aac
bytes per packet = 0
frames per packet = 0
bytes per frame = 0
channels per frame = 1
bits per channel = 8
reserved = 0
status = ExtAudioFileCreateWithURL((CFURLRef) URL, kAudioFileM4AType, &mFileFormat, nil,
kAudioFileFlags_EraseFile, &mExtAudioFileRef);
transferFormat is:
sample rate = 11025
format ID = lpcm
format flags = 12
bytes per packet = 1
frames per packet = 1
bytes per frame = 1
channels per frame = 1
bits per channel = 8
status = ExtAudioFileSetProperty(mExtAudioFileRef, kExtAudioFileProperty_ClientDataFormat,
sizeof(AudioStreamBasicDescription), transferFormat);
returns status of -536870212
What does this code mean and how do we get this to work?
-Stevo
_______________________________________________
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