---
title: "isEqual(_:)"
framework: avfaudio
role: symbol
role_heading: Instance Method
path: "avfaudio/avaudioformat/isequal(_:)"
---

# isEqual(_:)

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

## Declaration

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

## Parameters

- `object`: The object to compare.

## Return Value

Return Value A Boolean value of true if the receiver and object are equal; otherwise, false.

## Discussion

Discussion The PCM format ignores interleaveness for mono. The method ignores the differences in the 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, 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.
