Re: AudioQueueNewOutput return value
Re: AudioQueueNewOutput return value
- Subject: Re: AudioQueueNewOutput return value
- From: Jens Alfke <email@hidden>
- Date: Tue, 29 Apr 2008 07:40:05 -0700
On 28 Apr '08, at 10:14 PM, Roland Silver wrote: My call of AudioQueueNewOutput returns status 1718449215. What in the world is that?
Most CoreAudio error codes are "OSTypes", four-character codes encoded in a 32-bit integer. The error codes are defined in the header.
I've found that, in a Cocoa app, the easiest way to print these readably is to call NSFileTypeForHFSTypeCode, which converts an OSType to a quoted string. But you can't always use this, because CA sometimes returns regular small-negative-integer OSStatus errors from CarbonCore. I use this utility function when printing error codes:
NSString* CAErrorString( OSStatus coreAudioError ) { if( coreAudioError >= 0x20202020 ) return NSFileTypeForHFSTypeCode(coreAudioError); else return [NSString stringWithFormat: @"%i",coreAudioError]; }
—Jens |
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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