Re: Question about items in Sound Preferences
Re: Question about items in Sound Preferences
- Subject: Re: Question about items in Sound Preferences
- From: Jeff Moore <email@hidden>
- Date: Mon, 02 Mar 2009 18:05:38 -0800
There isn't a problem with your driver. This is just a quirk of the Sound Prefs panel. It will list all the items in your Data Source control as if they are devices themselves. You can see how this works if you put the Sound Prefs side by side with Audio MIDI Setup.
If this is causing a problem for your device, then please file a bug.
On Mar 2, 2009, at 5:55 PM, David Tan wrote: I found a weird phenomenon while loading a Firewire audio driver. In the Sound Preference, there will be two Input items for my driver.
1. xxxxxx 2. xxxxxx: Optical Port B is S/PDIF
The second input item will disappear if I comment the an IOAudioControl in the driver. Please see the snippet I’m using to add this IOAudioControl.
fDataSourceControl = IOAudioSelectorControl::create(k003OpticalPortBIsNotSPDIFMask, // By default optical port B is for ADAT kIOAudioControlChannelIDAll, kIOAudioControlChannelNameAll, 0, kIOAudioSelectorControlSubTypeInput, kIOAudioControlUsageInput); fDataSourceControl->addAvailableSelection(k003OpticalPortBIsNotSPDIFMask, "Optical Port B is ADAT"); fDataSourceControl->addAvailableSelection(k003OpticalPortBIsSPDIFMask, "Optical Port B is S/PDIF"); fDataSourceControl->setValueChangeHandler(OSMemberFunctionCast(IOAudioControl::IntValueChangeHandler, this, &FW003AudioDevice::DataSourceChanged), this); engine->addDefaultAudioControl(fDataSourceControl); fDataSourceControl->release(); // Let it be released automatically when the device is removed from the registry
Is there anything wrong in my operation? Any advice will be very appreciated. Thanks!
--
Jeff Moore Core Audio Apple
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden