Contents

SetCurrentSelectedValues

Sets the current selections of the selector.

Declaration

kern_return_t SetCurrentSelectedValues(const IOUserAudioSelectorValue *in_values, size_t in_num_values);

Parameters

  • in_values:

    An array of Iouseraudioselectorvalue values to set as the current selection of the control.

  • in_num_values:

    The number of values in in_values.

Return Value

kIOReturnSuccess on success, or another value if an error occurs. For a list of error codes, see Error Codes.

Discussion

If successful, changing the control’s selected values sends a notification to the host to update the object state.

This method synchronizes by using the work queue created by the object.

See Also

Accessing the Selected Values