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 }
  • tag

    Returns the layout’s mAudioChannelLayoutTag

    Declaration

    Swift

    public var tag: AudioChannelLayoutTag { get }
  • Returns the layout’s mAudioChannelBitmap

    Declaration

    Swift

    public var bitmap: AudioChannelBitmap { get }
  • Returns the layout’s mNumberChannelDescriptions

    Declaration

    Swift

    public var numberChannelDescriptions: UInt32 { get }
  • Returns the layout’s mChannelDescriptions

    Declaration

    Swift

    public var channelDescriptions: UnsafeBufferPointer<AudioChannelDescription> { get }
  • Performs block with a pointer to the underlying AudioChannelLayout structure

    Declaration

    Swift

    public func withUnsafePointer<T>(_ block: (UnsafePointer<AudioChannelLayout>) throws -> T) rethrows -> T
  • Returns self converted to an AVAudioChannelLayoutobject

    Declaration

    Swift

    public var avAudioChannelLayout: AVAudioChannelLayout { get }
  • Declaration

    Swift

    public var debugDescription: String { get }