---
title: init
framework: kernel
role: pseudoSymbol
path: kernel/ioaudiotogglecontrol/1811599-init
---

# init

Initializes a newly allocated IOAudioToggleControl with the given attributes

## Declaration

```occ
virtual bool init(
 bool initialValue, 
 UInt32 channelID, 
 const char *channelName = 0, 
 UInt32 cntrlID = 0, 
 UInt32 subType = 0, 
 UInt32 usage = 0, 
 OSDictionary *properties = 0); 
```

## Parameters

- `initialValue`: The initial value of the control
- `channelID`: The ID of the channel(s) that the control acts on. Common IDs are located in IOAudioTypes.h.
- `channelName`: An optional name for the channel. Common names are located in IOAudioPort.h.
- `cntrlID`: An optional ID for the control that can be used to uniquely identify controls

## Return Value

Return Value Returns truen on success

## See Also

### Miscellaneous

- [create](kernel/ioaudiotogglecontrol/1811569-create.md)
- [createPassThruMuteControl](kernel/ioaudiotogglecontrol/1811586-createpassthrumutecontrol.md)
