setDeviceCanBeDefault
This function is to be called to tell CoreAudio if this device shouldn't be a default device.
Declaration
virtual void setDeviceCanBeDefault(
UInt32defaultsFlags);Parameters
- defaultsFlags:
The flags to instruct CoreAudio to allow this device to be only the indicated default devices.
Overview
This is useful for device drivers that don't want to be a default device. Can be called with kIOAudioDeviceCanBeDefaultNothing to prevent CoreAudio from allowing this device to be any default device, or it can be called with any combination of kIOAudioDeviceCanBeDefaultInput, kIOAudioDeviceCanBeDefaultOutput, or kIOAudioDeviceCanBeSystemOutput. The default is (kIOAudioDeviceCanBeDefaultInput | kIOAudioDeviceCanBeDefaultOutput | kIOAudioDeviceCanBeSystemOutput).
See Also
Miscellaneous
activateAudioEngine(IOAudioEngine *)activateAudioEngine(IOAudioEngine *, bool)addTimerEventattachAudioPortaudioEngineStartingaudioEngineStoppedcompletePowerStateChangecompletePowerStateChangeActiondeactivateAllAudioEnginesdetachAllAudioPortsdispatchTimerEventsflushAudioControlsfreegetCommandGategetPendingPowerStategetPowerStategetWorkLoopinitinitHardwareinitiatePowerStateChangeperformPowerStateChangeprotectedCompletePowerStateChangeprotectedSetPowerStateremoveAllTimerEventsremoveTimerEventsetConfigurationApplicationBundlesetDeviceNamesetDeviceShortNamesetFamilyManagePowersetIdleAudioSleepTimesetManufacturerNamesetPowerStatesetPowerStateActionstartstoptimerFiredwaitForPendingPowerStateChange