Class SoundListenerAbstract

Used to position and orient the AudioListener cross-browser.

See

createSoundListener

Hierarchy

  • SoundListener

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Set the forward direction of this listener. The default is (0, 0, -1).

    Parameters

    • x: number

      The x-direction.

    • y: number

      The y-direction.

    • z: number

      The z-direction.

    Returns void

  • Set the forward and up direction of this listener. The defaults are (0, 0, -1) and (0, 1, 0).

    Parameters

    • forwardX: number

      The forward x-direction.

    • forwardY: number

      The forward Y-direction.

    • forwardZ: number

      The forward Z-direction.

    • upX: number

      The up x-direction.

    • upY: number

      The up y-direction.

    • upZ: number

      The up z-direction.

    Returns void

  • Set the position of this listener. The default is (0, 0, 0).

    Parameters

    • x: number

      The x-coordinate.

    • y: number

      The y-coordinate.

    • z: number

      The z-coordinate.

    Returns void

  • Set the up direction of this listener. The default is (0, 1, 0).

    Parameters

    • x: number

      The x-direction.

    • y: number

      The y-direction.

    • z: number

      The z-direction.

    Returns void

Generated using TypeDoc