---
title: GetCurrentSelectedValues
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudioselectorcontrol/getcurrentselectedvalues
---

# GetCurrentSelectedValues

Gets the current selections of the selector.

## Declaration

```occ
size_t GetCurrentSelectedValues(IOUserAudioSelectorValue *out_values, size_t in_num_values);
```

## Parameters

- `out_values`: A pointer to a buffer of type doc://com.apple.audiodriverkit/documentation/AudioDriverKit/IOUserAudioSelectorValue, with a size of in_num_values. On return, this buffer contains the selected values.
- `in_num_values`: The size of the out_values array.

## Return Value

Return Value The number of values populated in the out_values buffer.

## Discussion

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

## See Also

### Accessing the Selected Values

- [SetCurrentSelectedValues](audiodriverkit/iouseraudioselectorcontrol/setcurrentselectedvalues.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)
