• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AudioQueueNewOutput return value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >AudioQueueNewOutput return value (From: Roland Silver <email@hidden>)

  • Prev by Date: Re: AudioQueueNewOutput return value
  • Next by Date: Re: mp4 audio playback
  • Previous by thread: Re: AudioQueueNewOutput return value
  • Next by thread: mp4 audio playback
  • Index(es):
    • Date
    • Thread