<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioPCMBuffer/floatChannelData",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAudioPCMBuffer(py)floatChannelData"
  },
  "title" : "floatChannelData"
}
-->

# floatChannelData

The buffer’s audio samples as floating point values.

```
var floatChannelData: UnsafePointer<UnsafeMutablePointer<Float>>? { get }
```

## Discussion

The `floatChannelData` property returns pointers to the buffer’s audio samples if the buffer’s format is 32-bit float. It returns `nil` if it’s another format.

The returned pointer is to `format.channelCount` pointers to float. Each of these pointers is to [`frameLength`](/documentation/AVFAudio/AVAudioPCMBuffer/frameLength) valid samples, which the class spaces by [`stride`](/documentation/AVFAudio/AVAudioPCMBuffer/stride) samples.

If the format isn’t interleaved, as with the standard deinterleaved float format, the pointers point to separate chunks of memory, and the [`stride`](/documentation/AVFAudio/AVAudioPCMBuffer/stride) property value is `1`.

When the format is in an interleaved state, the pointers refer to the same buffer of interleaved samples, each offset by `1` frame, and the [`stride`](/documentation/AVFAudio/AVAudioPCMBuffer/stride) property value is the number of interleaved channels.

---

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)