Re: ExtAudioFileSetProperty error number -1027
Re: ExtAudioFileSetProperty error number -1027
- Subject: Re: ExtAudioFileSetProperty error number -1027
- From: Doug Wyatt <email@hidden>
- Date: Thu, 21 May 2009 17:18:27 -0700
Cool. Now please go replace all those occurrences of the venerable but obsolete OSErr with OSStatus :-) (or am I guessing wrong about how it is that you're seeing truncated error codes?)
Doug
On May 21, 2009, at 16:45 , Ethan Funk wrote:
Yep, that's it!
I passed the wrong format variable in, one which had not yet been initialized.
Thanks, Ethan... On May 21, 2009, at 4:37 PM, Doug Wyatt wrote:
On May 21, 2009, at 16:00 , Ethan Funk wrote: Does any one know what an error -1027 means when returned from:
ExtAudioFileSetProperty(audioFileID, kExtAudioFileProperty_ClientDataFormat, sizeof(AudioStreamBasicDescription), &inFormat);
In the big picture, this is related to recording an aac file, based on the AudioFileRecorder example.
You may be truncating a 32-bit OSStatus of -66563 (0xfffefbfd) to its lower 16 bits, -1027 (0xfffffbfd).
kExtAudioFileError_NonPCMClientFormat = -66563,
The format you pass as a client data format must be PCM.
Doug
|
_______________________________________________
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