---
title: HandleChangeSelectedValues
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudioselectorcontrol/handlechangeselectedvalues
---

# HandleChangeSelectedValues

Tells the selection control the value is changing.

## Declaration

```occ
virtual kern_return_t HandleChangeSelectedValues(const IOUserAudioSelectorValue *in_control_values, size_t in_num_values);
```

## Parameters

- `in_control_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_control_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 The default implementation calls SetCurrentSelectedValues and returns kIOReturnSuccess. Subclass and override this method to handle changes to the stream format and return kIOReturnSuccess upon success.
