isEqual(_:)
Indicates whether the audio format instance and a specified object are functionally equivalent.
Declaration
func isEqual(_ object: Any) -> BoolParameters
- object:
The object to compare.
Return Value
A Boolean value of true if the receiver and object are equal; otherwise, false.
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.