setValue
Sets the value for this control.
Declaration
virtual IOReturn setValue(
OSObject *newValue);Parameters
- newValue:
The new value for this control.
Return Value
Returns kIOReturnSuccess if the value is successfully set.
Overview
When the control's value is changed, a call is made to performValueChange(). If that call succeeds, the value is set and sendValueChangeNotification() is called to send a notification to the user clients. This function must be called on the IOWorkLoop.
See Also
Miscellaneous
addUserClientaddUserClientActionclientClosedcreateUserClient(task_t, void *, UInt32, IOAudioControlUserClient **)createUserClient(task_t, void *, UInt32, IOAudioControlUserClient **, OSDictionary *)detachUserClientsActionflushValuefreegetChannelIDgetCommandGategetControlIDgetIsStartedgetValuegetWorkLoophardwareValueChangedinitnewUserClientperformValueChangeremoveUserClientremoveUserClientActionsendValueChangeNotificationsetChannelIDsetChannelNamesetControlIDsetPropertiessetReadOnlyFlagsetSubType(UInt32)setType(UInt32)setUsagesetValueActionstartstopupdateValuevalidateValuewithAttributes