Audio Units vs Audio HAL? (newbie question)
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.