---
title: create
framework: kernel
role: pseudoSymbol
path: kernel/ioaudiolevelcontrol/1811861-create
---

# create

Allocates a new level control with the given attributes

## Declaration

```occ
static IOAudioLevelControl *create(
 SInt32 initialValue, 
 SInt32 minValue, 
 SInt32 maxValue, 
 IOFixed minDB, 
 IOFixed maxDB, 
 UInt32 channelID, 
 const char *channelName = 0, 
 UInt32 cntrlID = 0, 
 UInt32 subType = 0, 
 UInt32 usage = 0); 
```

## Parameters

- `initialValue`: The initial value of the control
- `minValue`: The lowest possible value the control may have
- `maxValue`: The highest possible value the control may have
- `minDB`: A fixed point representation of the db value matching minValue
- `maxDB`: A fixed point representation of the db value matching maxValue
- `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 IOAudioTypes.h.
- `cntrlID`: An optional ID for the control that can be used to uniquely identify controls.

## Return Value

Return Value Returns a newly allocted and initialized level IOAudioControl

## See Also

### Miscellaneous

- [init](kernel/ioaudiolevelcontrol/1811868-init.md)
- [setLinearScale](kernel/ioaudiolevelcontrol/1811880-setlinearscale.md)
- [setMaxDB](kernel/ioaudiolevelcontrol/1811889-setmaxdb.md)
- [setMaxValue](kernel/ioaudiolevelcontrol/1811896-setmaxvalue.md)
- [setMinDB](kernel/ioaudiolevelcontrol/1811907-setmindb.md)
- [setMinValue](kernel/ioaudiolevelcontrol/1811910-setminvalue.md)
