Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AudioListener

The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute.

Hierarchy

  • AudioListener

Index

Properties

Readonly forwardX

forwardX: AudioParam

Readonly forwardY

forwardY: AudioParam

Readonly forwardZ

forwardZ: AudioParam

Readonly positionX

positionX: AudioParam

Readonly positionY

positionY: AudioParam

Readonly positionZ

positionZ: AudioParam

Readonly upX

Readonly upY

Readonly upZ

Methods

setOrientation

  • setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void
  • deprecated

    Parameters

    • x: number
    • y: number
    • z: number
    • xUp: number
    • yUp: number
    • zUp: number

    Returns void

setPosition

  • setPosition(x: number, y: number, z: number): void
  • deprecated

    Parameters

    • x: number
    • y: number
    • z: number

    Returns void

Generated using TypeDoc