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

Audio Units vs Audio HAL? (newbie question)


  • Subject: Audio Units vs Audio HAL? (newbie question)
  • From: François Menu <email@hidden>
  • Date: Fri, 7 Mar 2003 15:43:04 +0100

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?

--
Frangois Menu
email@hidden
_______________________________________________
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.

  • Follow-Ups:
    • Re: Audio Units vs Audio HAL? (newbie question)
      • From: David Duncan <email@hidden>
  • Prev by Date: AudioConverter question
  • Next by Date: Re: Audio Units vs Audio HAL? (newbie question)
  • Previous by thread: Re: AudioConverter question
  • Next by thread: Re: Audio Units vs Audio HAL? (newbie question)
  • Index(es):
    • Date
    • Thread