Re: Two same name audio device
Re: Two same name audio device
- Subject: Re: Two same name audio device
- From: Kris Daniel <email@hidden>
- Date: Thu, 10 Jun 2004 12:12:01 -0700
On Jun 10, 2004, at 11:46 AM, Chris Reed wrote:
On Jun 10, 2004, at 10:52 AM, Kris Daniel wrote:
There is, however, a problem that you'll run into with Audio MIDI
Setup (version 2.0): if two (or more) devices provide the same name,
(which happens when identical devices are plugged in over USB), Audio
MIDI Setup will only display the name once in the drop-down menus for
audio device selection, even if the devices have different
GlobalUniqueIDs. This strikes me as a bug in Audio MIDI Setup. I've
only seen it happen with devices that I'm writing the driver for, so
it's possible I'm doing something wrong.
Yeah, that definitely sounds like a bug. In Cocoa apps, at least, the
method -[NSMenu addItemWithTitle:action:keyEquivalent:] will return
nil if there is already an item with the same title. (You can work
around this by either using -[NSMenu addItem:] with an NSMenuItem you
created yourself or by adding a unique item, then changing the title.)
Have you entered a bug at http://radar.apple.com? If not, I will.
I haven't entered a bug on it yet, mostly because I was unsure what
"the right way" is. I've experimented a bit more and found than the
string entered for the IOAudioEngine's setDescription() is the name
that displays in Audio MIDI Setup, (as well as GarageBand, which
behaved just like AMS). When I provide the serial number of the unit
as part of that string, both units display just fine and are selectable
and store their parameters/preferences appropriately.
Additionally, it's easier on the user if they can distinguish the two
devices, so showing the serial number as part of the AudioEngine's name
in AMS doesn't seem like a bad way to go. I'd prefer if the user could
re-name the IOAudioEngines in a way similar to renaming the MIDI
devices on the MIDI pane of AMS (in order to give names like "my
Device"/"my brother's Device" vs. "Device: Serial Number"/"Device:
Serial Number2").
I'll enter a bug on it, but I think I'll stick with displaying the
serial number as part of the device name.
Thanks,
Kris Daniel
_______________________________________________
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.