IOAudioMixerTrackSettings

public struct IOAudioMixerTrackSettings : Codable, Sendable

Constraints on the audio mixier track’s settings.

  • The default value.

    Declaration

    Swift

    public static let `default`: IOAudioMixerTrackSettings
  • Specifies the volume for output.

    Declaration

    Swift

    public var volume: Float
  • Specifies the muted that indicates whether the audio output is muted.

    Declaration

    Swift

    public var isMuted: Bool
  • Specifies the mixes the channels or not. Currently, it supports input sources with 4, 5, 6, and 8 channels.

    Declaration

    Swift

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

    Example code:

    // If you want to use the 3rd and 4th channels from a 4-channel input source for a 2-channel output, you would specify it like this.
    channelMap = [2, 3]
    

    Declaration

    Swift

    public var channelMap: [Int]?