Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SoundTransform

The SoundTransform class contains properties for volume and panning.

Hierarchy

  • SoundTransform

Index

Constructors

constructor

  • Creates a SoundTransform object.

    Parameters

    • Optional vol: number

      The volume, ranging from 0(silent) to 1(full volume).

    • Optional panning: number

      The left-to-right panning of the sound, ranging from -1 (full pan left) to 1(full pan right). A value of 0 represents no panning(center).

    Returns SoundTransform

Properties

leftToLeft

leftToLeft: number

A value, from 0(none) to 1(all), specifying how much of the left input is played in the left speaker.

leftToRight

leftToRight: number

A value, from 0(none) to 1(all), specifying how much of the left input is played in the right speaker.

pan

pan: number

The left-to-right panning of the sound, ranging from -1(full pan left) to 1(full pan right). A value of 0 represents no panning(balanced center between right and left).

rightToLeft

rightToLeft: number

A value, from 0(none) to 1(all), specifying how much of the right input is played in the left speaker.

rightToRight

rightToRight: number

A value, from 0(none) to 1(all), specifying how much of the right input is played in the right speaker.

volume

volume: number

The volume, ranging from 0(silent) to 1(full volume).

Methods

clone

Generated using TypeDoc