AudioCodecSettings

public struct AudioCodecSettings : Codable

The AudioCodecSettings class specifying audio compression settings.

  • The default value.

    Declaration

    Swift

    public static let `default`: AudioCodecSettings
  • Maximum number of channels supported by the system

    Declaration

    Swift

    public static let maximumNumberOfChannels: UInt32
  • Maximum sampleRate supported by the system

    Declaration

    Swift

    public static let maximumSampleRate: Float64
  • Specifies the bitRate of audio output.

    Declaration

    Swift

    public var bitRate: Int
  • Create an new AudioCodecSettings instance. A value of 0 will use the same value as the input source.

    Declaration

    Swift

    public init(
        bitRate: Int = 64 * 1000
    )