API

Interface IStereoAudioOptions

interface IStereoAudioOptions {
    stereoEnabled: boolean;
    stereoPan: number;
}

Hierarchy (View Summary)

Index
stereoEnabled: boolean

Enable stereo. Defaults to false.

When set to true, the audio node's stereo properties will be initialized on creation and there will be no delay when setting the first stereo value.

When not specified, or set to false, the audio node's stereo properties will not be initialized on creation and there will be a small delay when setting the first stereo value.

  • This option is ignored if any other stereo options are set.
stereoPan: number

The stereo pan from -1 (left) to 1 (right). Defaults to 0.