• 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: Audio Units vs Audio HAL? (newbie question)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audio Units vs Audio HAL? (newbie question)


  • Subject: Re: Audio Units vs Audio HAL? (newbie question)
  • From: David Duncan <email@hidden>
  • Date: Fri, 7 Mar 2003 10:04:01 -0500

On Friday, March 7, 2003, at 09:43 AM, Frangois Menu wrote:

I want to output (computed) audio to the default audio device, but it's not clear for me wether I should use the Audio HAL or an Audio Unit.

With Audio HAL I can get the default output device and the properties of the output device, then add an IO Proc for the device and start it playing. But, as I understand it, I'll have to provide my audio samples in the output format, at the required sample rate, and keep track of the current audio device (if the user change it in the system prefs, or unplug it).

Using the default ouptut Audio Unit (by calling OpenDefaultAudioOutput), I set the input callback for this Audio Unit, and start it playing. It's rather similar to using Audio HAL, but the default ouptut Audio Unit will keep track for me of any change in the hardware audio configuration (and adapt to the new congiguration), without my code having to deal with this issues?

Yes, the DefaultOutput audio unit will do all the housekeeping for you, so it is easiest to use it. If you would prefer AudioUnit V2 semantics however, you will need to load the DefaultAudioUnit directly via the Component Manager, OpenDefaultAudioOutput() has been deprecated (since it can only open the V1 version).
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.

David Duncan
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

References: 
 >Audio Units vs Audio HAL? (newbie question) (From: François Menu <email@hidden>)

  • Prev by Date: Audio Units vs Audio HAL? (newbie question)
  • Next by Date: Re: AudioConverter error
  • Previous by thread: Audio Units vs Audio HAL? (newbie question)
  • Next by thread: Mixer units
  • Index(es):
    • Date
    • Thread