<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioToolbox",
  "identifier" : "/documentation/AudioToolbox/kAudioFormatProperty_ValidateChannelLayout",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Audio Toolbox"
    ],
    "preciseIdentifier" : "c:@Ea@kAudioFormatProperty_FormatInfo@kAudioFormatProperty_ValidateChannelLayout"
  },
  "title" : "kAudioFormatProperty_ValidateChannelLayout"
}
-->

# kAudioFormatProperty_ValidateChannelLayout

The validity of an audio channel layout structure.

```
var kAudioFormatProperty_ValidateChannelLayout: AudioFormatPropertyID { get }
```

## Discussion

Indicates the validity of the <doc://com.apple.documentation/documentation/CoreAudioTypes/AudioChannelLayout> struct provided as the specifier. The property value and size are not used and must be set to `NULL`. This is useful if the layout has come from an untrusted source such as a file. It returns `noErr` if the `AudioChannelLayout` is OK, <doc://com.apple.documentation/documentation/CoreAudioTypes/kAudio_ParamError> if there is a structural problem with the layout, or [`kAudioFormatUnknownFormatError`](/documentation/AudioToolbox/kAudioFormatUnknownFormatError) for unrecognized layout tags or channel labels.

If the layout tag is <doc://com.apple.documentation/documentation/CoreAudioTypes/kAudioChannelLayoutTag_UseChannelDescriptions> it returns the number of channel descriptions.

---

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)