• 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
kAudioFormatFlagsAudioUnitCanonical
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

kAudioFormatFlagsAudioUnitCanonical


  • Subject: kAudioFormatFlagsAudioUnitCanonical
  • From: Chris Adamson <email@hidden>
  • Date: Thu, 26 Feb 2009 14:40:04 -0500

So, the format of kAudioFormatFlagsAudioUnitCanonical is 8.24 fixed point (mentioned in some doc, as well as in CoreAudioTypes.h).

Pardon the "still getting my C sensibilities back" question, but are there any utilities in the iPhone SDK for working with 8.24 fixed, like the Fixed data type or FloatToFixed function from the Mac SDK?  There's a AudioUnitSampleType in CoreAudioTypes.h, but it's just defined as SFloat32. Do I need to plan on doing my own bit-shifting?  So far, I'm generating square waves by setting the high eight bits of each sample to either 0x80 to 0x00.

Having brought it up, is it genuinely advantageous to use the AU canonical format for synthesized audio, or is it just as well to use something simpler, like 16-bit ints?  I know Jens made this point a few weeks back: <http://lists.apple.com/archives/coreaudio-api/2009/Feb/msg00263.html>

--Chris

 _______________________________________________
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

  • Follow-Ups:
    • Re: kAudioFormatFlagsAudioUnitCanonical
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: Re: Getting the PreferedHardwareIOBufferDuration
  • Next by Date: Re: Driver seems a little dizzy while running more than on mediaplayer
  • Previous by thread: Update on AURender Call back function
  • Next by thread: Re: kAudioFormatFlagsAudioUnitCanonical
  • Index(es):
    • Date
    • Thread