---
title: SetCurrentSelectedValues
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudioselectorcontrol/setcurrentselectedvalues
---

# SetCurrentSelectedValues

Sets the current selections of the selector.

## Declaration

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

## Parameters

- `in_values`: An array of doc://com.apple.audiodriverkit/documentation/AudioDriverKit/IOUserAudioSelectorValue values to set as the current selection of the control.
- `in_num_values`: The number of values in in_values.

## Return Value

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

## Discussion

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

- [GetCurrentSelectedValues](audiodriverkit/iouseraudioselectorcontrol/getcurrentselectedvalues.md)
- [GetControlValuesCount](audiodriverkit/iouseraudioselectorcontrol/getcontrolvaluescount.md)
- [IOUserAudioSelectorValue](audiodriverkit/iouseraudioselectorvalue.md)
- [AddControlValueDescriptions](audiodriverkit/iouseraudioselectorcontrol/addcontrolvaluedescriptions.md)
- [RemoveControlValueDescriptions](audiodriverkit/iouseraudioselectorcontrol/removecontrolvaluedescriptions.md)
- [GetControlValueDescriptions](audiodriverkit/iouseraudioselectorcontrol/getcontrolvaluedescriptions.md)
- [IOUserAudioSelectorValueDescription](audiodriverkit/iouseraudioselectorvaluedescription.md)
