• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Question about items in Sound Preferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Question about items in Sound Preferences
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Re: AudioQueue Usage Question
  • Next by Date: Re: Question about items in Sound Preferences
  • Previous by thread: Re: AudioQueue Usage Question
  • Next by thread: Re: Question about items in Sound Preferences
  • Index(es):
    • Date
    • Thread