AudioCodecSettings

public struct AudioCodecSettings : Codable, Sendable

Constraints on the audio codec compression settings.

  • The default value.

    Declaration

    Swift

    public static let `default`: AudioCodecSettings
  • The default bitRate. The value is 64,000 bps.

    Declaration

    Swift

    public static let defaultBitRate: Int
  • Maximum number of channels supported by the system

    Declaration

    Swift

    public static let maximumNumberOfChannels: UInt32
  • Specifies the bitRate of audio output.

    Declaration

    Swift

    public var bitRate: Int
  • Specifies the mixes the channels or not.

    Declaration

    Swift

    public var downmix: Bool
  • Specifies the map of the output to input channels.

    Declaration

    Swift

    public var channelMap: [Int]?
  • Creates a new instance.

    Declaration

    Swift

    public init(bitRate: Int = AudioCodecSettings.defaultBitRate, downmix: Bool = true, channelMap: [Int]? = nil)