Re: Identification of IOAudioDevice from HAL client app
Re: Identification of IOAudioDevice from HAL client app
- Subject: Re: Identification of IOAudioDevice from HAL client app
- From: Bill Stewart <email@hidden>
- Date: Mon, 11 Nov 2002 14:48:28 +0100
The 2 devices that AMS presents as one are the USB drivers where in and
out are separate drivers...
It does this simply by checking the name of the device and if they are
the same (and one has input the other output streams ONLY) it presents
this to the user as a single device - this was only done to make this a
simpler and more understandable presentation of the devices for a user
I don't know that I'd call this the "Apple way" but this works (and we
use it:)
Bill
On Monday, November 11, 2002, at 02:03 PM, Shaun Wexler wrote:
On 11/10/02 10:35 PM, "Bill Stewart" <email@hidden> wrote:
AMS uses the AudioHardware calls to get a list of the AudioDeviceID -
this is the object that you should use - there's nothing extra
virtuous
about being an IOAudioDevice (in fact the reverse is the case):)
In Audio MIDI Setup, the "Selected Audio Device" pop-up button allows
a user
to select a single named ~device~ which may be comprised of >1
AudioDeviceID
objects; the separate input and output AudioDeviceID's have been
grouped
SOMEHOW into one menu item with their common DeviceName. The control's
ToolTip reads "Current Audio Device Being Examined", for reference.
Am I
correct?
This is the functionality I want for my app, which I already had
achieved by
my UID parsing method. I would like to know the 'Apple' way to group
AudioDeviceID together so they represent the actual physical hardware
device, as demonstrated in Audio MIDI Setup.app from Apple. Someone's
got
to know... :)
Wouldn't this be a valid reason to add 1 or 2 public read-only
properties to
the HAL client API?
--
Shaun Wexler
http://www.macfoh.com
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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.