---
title: "withUnsafePointer(_:)"
framework: coreaudio
role: symbol
role_heading: Instance Method
path: "coreaudio/managedaudiochannellayout/withunsafepointer(_:)"
---

# withUnsafePointer(_:)

Calls a closure with a pointer to the backing AudioChannelLayout.

## Declaration

```swift
func withUnsafePointer<Result>(_ body: (UnsafePointer<AudioChannelLayout>) throws -> Result) rethrows -> Result
```

## Parameters

- `body`: A closure that is called with a pointer to the backing AudioChannelLayout.
