Mixes both channels (left and right), with a configurable factor on how much each channel affects the other. With the defaults, both channels are kept independent of each other. Setting all factors to 0.5 means both channels get the same audio.

interface ChannelMix {
    leftToLeft?: number;
    leftToRight?: number;
    rightToLeft?: number;
    rightToRight?: number;
}

Properties

leftToLeft?: number

The left to left channel mix factor (0.0 ≤ x ≤ 1.0)

leftToRight?: number

The left to right channel mix factor (0.0 ≤ x ≤ 1.0)

rightToLeft?: number

The right to left channel mix factor (0.0 ≤ x ≤ 1.0)

rightToRight?: number

The right to right channel mix factor (0.0 ≤ x ≤ 1.0)