---
title: "init(audioChannelLayoutPointer:deallocator:)"
framework: coreaudio
role: symbol
role_heading: Initializer
path: "coreaudio/managedaudiochannellayout/init(audiochannellayoutpointer:deallocator:)"
---

# init(audioChannelLayoutPointer:deallocator:)

Creates a new ManagedAudioChannelLayout from an existing pointer to an AudioChannelLayout.

## Declaration

```swift
init(audioChannelLayoutPointer: AudioChannelLayout.UnsafePointer, deallocator: @escaping (AudioChannelLayout.UnsafePointer) -> Void)
```

## Parameters

- `audioChannelLayoutPointer`: A pointer to an existing AudioChanneLayout.
- `deallocator`: A closure that will be called when audioChannelLayoutPointer is no longer used.

## Discussion

Discussion Any mutation on the new ManagedAudioChannelLayout will perform a copy of the audioChannelLayoutPointer values.
