---
title: "init(componentDescription:)"
framework: audiotoolbox
role: symbol
role_heading: Initializer
path: "audiotoolbox/auaudiounit/init(componentdescription:)"
---

# init(componentDescription:)

Synchronously initializes a new audio unit object.

## Declaration

```swift
convenience init(componentDescription: AudioComponentDescription) throws
```

## Parameters

- `componentDescription`: The component to instantiate.

## Return Value

Return Value An initialized audio unit, or nil if initialization failed.

## Discussion

Discussion This is the convenience initializer. A single audio unit subclass may implement multiple audio units—for example, an effect that can also function as a generator, or a cluster of related effects. note: In Swift, this method returns a nonoptional result and is marked with the throws keyword to indicate that it throws an error in cases of failure. You call this method in a try expression and handle any errors in the catch clauses of a do statement, as described in Error Handling in The Swift Programming Language and About Imported Cocoa Error Parameters.

## See Also

### Creating an Audio Unit

- [init(componentDescription:options:)](audiotoolbox/auaudiounit/init(componentdescription:options:).md)
- [instantiate(with:options:completionHandler:)](audiotoolbox/auaudiounit/instantiate(with:options:completionhandler:).md)
