mirror of
https://github.com/HaishinKit/HaishinKit.swift.git
synced 2026-06-06 20:17:36 +00:00
17 lines
681 B
Swift
17 lines
681 B
Swift
import CoreAudio
|
|
import Foundation
|
|
|
|
extension AudioStreamBasicDescription: Equatable {
|
|
public static func == (lhs: AudioStreamBasicDescription, rhs: AudioStreamBasicDescription) -> Bool {
|
|
lhs.mBitsPerChannel == rhs.mBitsPerChannel &&
|
|
lhs.mBytesPerFrame == rhs.mBytesPerFrame &&
|
|
lhs.mBytesPerPacket == rhs.mBytesPerPacket &&
|
|
lhs.mChannelsPerFrame == rhs.mChannelsPerFrame &&
|
|
lhs.mFormatFlags == rhs.mFormatFlags &&
|
|
lhs.mFormatID == rhs.mFormatID &&
|
|
lhs.mFramesPerPacket == rhs.mFramesPerPacket &&
|
|
lhs.mReserved == rhs.mReserved &&
|
|
lhs.mSampleRate == rhs.mSampleRate
|
|
}
|
|
}
|