---
title: AddControl
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudioclockdevice/addcontrol
---

# AddControl

Adds a control to the clock device.

## Declaration

```occ
kern_return_t AddControl(IOUserAudioControl *in_control);
```

## Parameters

- `in_control`: The doc://com.apple.audiodriverkit/documentation/AudioDriverKit/IOUserAudioControl to add to the clock device.

## 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 adding the control succeeds, the control’s reference count increments by one.

## See Also

### Managing Audio Controls

- [RemoveControl](audiodriverkit/iouseraudioclockdevice/removecontrol.md)
- [IOUserAudioControl](audiodriverkit/iouseraudiocontrol.md)
