<!--
{
  "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/AVAudioFormat/isEqual(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAudioFormat(im)isEqual:"
  },
  "title" : "isEqual(_:)"
}
-->

# isEqual(_:)

Indicates whether the audio format instance and a specified object are functionally equivalent.

```
func isEqual(_ object: Any) -> Bool
```

## Parameters

`object`

The object to compare.

## Return Value

A Boolean value of <doc://com.apple.documentation/documentation/Swift/true> if the receiver and `object` are equal; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

The PCM format ignores interleaveness for mono.

The method ignores the differences in the <doc://com.apple.documentation/documentation/CoreAudioTypes/AudioStreamBasicDescription> alignment and packedness when they’re not significant. For example, with one channel, 2 bytes per frame, 16 bits per channel, and neither alignment, the format is implicit packedness and the method can interpret it as either high- or low-aligned.

For [`AVAudioChannelLayout`](/documentation/AVFAudio/AVAudioChannelLayout), the method considers a layout with the standard mono or stereo tag to be equivalent to a `nil` layout.

Otherwise, the method compares the layouts for equality.

---

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)