AudioChannelLayoutWrapper
public struct AudioChannelLayoutWrapper
extension AudioChannelLayoutWrapper: CustomDebugStringConvertible
A thin wrapper around a variable-length AudioChannelLayout structure
-
Returns the number of channels in the layout
Declaration
Swift
public var channelCount: UInt32 { get } -
Returns the layout’s
mAudioChannelLayoutTagDeclaration
Swift
public var tag: AudioChannelLayoutTag { get } -
Returns the layout’s
mAudioChannelBitmapDeclaration
Swift
public var bitmap: AudioChannelBitmap { get } -
Returns the layout’s
mNumberChannelDescriptionsDeclaration
Swift
public var numberChannelDescriptions: UInt32 { get } -
Returns the layout’s
mChannelDescriptionsDeclaration
Swift
public var channelDescriptions: UnsafeBufferPointer<AudioChannelDescription> { get } -
Performs
blockwith a pointer to the underlyingAudioChannelLayoutstructureDeclaration
Swift
public func withUnsafePointer<T>(_ block: (UnsafePointer<AudioChannelLayout>) throws -> T) rethrows -> T -
Returns
selfconverted to anAVAudioChannelLayoutobjectDeclaration
Swift
public var avAudioChannelLayout: AVAudioChannelLayout { get } -
Declaration
Swift
public var debugDescription: String { get }
View on GitHub
AudioChannelLayoutWrapper Structure Reference