Question about items in Sound Preferences
Question about items in Sound Preferences
- Subject: Question about items in Sound Preferences
- From: David Tan <email@hidden>
- Date: Tue, 03 Mar 2009 09:55:42 +0800
- Hi:
- Thread-topic: Question about items in Sound Preferences
Title: Question about items in Sound Preferences
Hi List,
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!
BTW, items in Output tab is fine.
Sincerely yours,
David Tan
_______________________________________________
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