AudioDevice vs. AudioUnit
AudioDevice vs. AudioUnit
- Subject: AudioDevice vs. AudioUnit
- From: "Steven A. Kortze" <email@hidden>
- Date: Mon, 14 Apr 2003 22:36:18 -0400
This might seem to be a rather rudimentary question, but I was curious.
I have seen several selections of source code that use the AudioDevice
(AudioHardware API or Hardware Abstraction Layer -- a.k.a. HAL) for
basic CoreAudio support. One example is the mpg123 port for OS X. This
seems fine if the assumption made for that sample code is valid. The
assumption is that the user will be using 2-channel hardware via the
built-in audio hardware. If the user is using an 8-channel sound card,
such as the M-Audio Revolution PCI card, the assumption is no longer
valid. On the other hand, the developer may be using AudioDevices to
minimize any overhead in processing the sound and to use the lowest API
that he can.
To properly handle both of these cases, the developer would need to use
the AudioUnit API. Is that statement correct? In this manner, the
developer could set up source and destination formats and allow for any
2 to 8 channel conversion or any other conversions that might be
necessary. What kind of performance degradation can occur by putting
these conversions into the audio stream? For example, suppose that I
want to decode some MP3 files and play the sound back via the 8-channel
Revolution hardware. Is the 2-to-8 channel conversion a significant
one? Would AudioUnits be the best approach in this case?
Thank you,
Steve
_______________________________________________
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.