---
title: SetControlValue
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudioslidercontrol/setcontrolvalue
---

# SetControlValue

Sets the value of the slider control.

## Declaration

```occ
kern_return_t SetControlValue(uint32_t in_control_value);
```

## Parameters

- `in_control_value`: The slider value to set.

## 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 value 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 Value

- [GetControlValue](audiodriverkit/iouseraudioslidercontrol/getcontrolvalue.md)
- [SetRange](audiodriverkit/iouseraudioslidercontrol/setrange.md)
- [GetRange](audiodriverkit/iouseraudioslidercontrol/getrange.md)
- [IOUserAudioSliderRange](audiodriverkit/iouseraudiosliderrange.md)
