---
title: init
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudiolevelcontrol/init
---

# init

Initializes an instance of a level control.

## Declaration

```occ
virtual bool init(IOUserAudioDriver *in_driver, bool in_is_settable, float in_decibel_value, IOUserAudioLevelControlRange in_decibel_range, IOUserAudioObjectPropertyElement in_control_element, IOUserAudioObjectPropertyScope in_control_scope, IOUserAudioClassID in_control_class_id);
```

## Parameters

- `in_driver`: The doc://com.apple.audiodriverkit/documentation/AudioDriverKit/IOUserAudioDriver that owns this object.
- `in_is_settable`: A Boolean value that indicates if the control can be set.
- `in_decibel_value`: A floating-point value that represents the level control’s current value in decibels.
- `in_decibel_range`: A doc://com.apple.audiodriverkit/documentation/AudioDriverKit/IOUserAudioLevelControlRange that describes the minimum and maximum values of the level control.
- `in_control_element`: An doc://com.apple.audiodriverkit/documentation/AudioDriverKit/AudioDriverKit/IOUserAudioObjectPropertyElement to identify the control.
- `in_control_scope`: A doc://com.apple.audiodriverkit/documentation/AudioDriverKit/AudioDriverKit/IOUserAudioObjectPropertyScope indicating the control’s scope: input, output, global, or play-through.
- `in_control_class_id`: The doc://com.apple.audiodriverkit/documentation/AudioDriverKit/AudioDriverKit/IOUserAudioClassID of the control.

## Return Value

Return Value true if initialization succeeded; false otherwise.

## See Also

### Creating a Level Control

- [Create](audiodriverkit/iouseraudiolevelcontrol/create.md)
- [IOUserAudioDriver](audiodriverkit/iouseraudiodriver.md)
- [IOUserAudioLevelControlRange](audiodriverkit/iouseraudiolevelcontrolrange.md)
- [IOUserAudioObjectPropertyElement](audiodriverkit/audiodriverkit/iouseraudioobjectpropertyelement.md)
- [IOUserAudioObjectPropertyScope](audiodriverkit/audiodriverkit/iouseraudioobjectpropertyscope.md)
