<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAudio",
  "identifier" : "/documentation/CoreAudio/ManagedAudioChannelLayout/init(audioChannelLayoutPointer:deallocator:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Audio"
    ],
    "preciseIdentifier" : "s:9CoreAudio07ManagedB13ChannelLayoutV05audiodE7Pointer11deallocatorACSo0bdE0VAAE06UnsafeG0V_yAIctcfc"
  },
  "title" : "init(audioChannelLayoutPointer:deallocator:)"
}
-->

# init(audioChannelLayoutPointer:deallocator:)

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

```
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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)