---
title: Create
framework: audiodriverkit
role: symbol
role_heading: Static Method
path: audiodriverkit/iouseraudiobox/create
---

# Create

Allocates and initializes an instance of the audio box class.

## Declaration

```occ
static OSSharedPtr<IOUserAudioBox> Create(IOUserAudioDriver *in_driver, bool in_is_acquirable, OSString *in_box_uid);
```

## Parameters

- `in_driver`: The doc://com.apple.audiodriverkit/documentation/AudioDriverKit/IOUserAudioDriver that owns this object.
- `in_is_acquirable`: A Boolean value that specifies if the box supports being acquired.
- `in_box_uid`: The name of the box, as an doc://com.apple.documentation/documentation/DriverKit/OSString.

## Return Value

Return Value A poiner to an IOUserAudioBox, if allocation and initialization succeeded.

## Discussion

Discussion If you subclass IOUserAudioBox to override this class’ behavior, don’t use Create to allocate and initialize the custom subclass.

## See Also

### Creating an Audio Box

- [init](audiodriverkit/iouseraudiobox/init.md)
- [IOUserAudioDriver](audiodriverkit/iouseraudiodriver.md)
