init(audioChannelLayoutPointer:deallocator:)
Creates a new ManagedAudioChannelLayout from an existing pointer to an AudioChannelLayout.
Declaration
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
audioChannelLayoutPointeris no longer used.
Discussion
Any mutation on the new ManagedAudioChannelLayout will perform a copy of the audioChannelLayoutPointer values.