createPanner method

PannerNode createPanner()

The createPanner() method of the BaseAudioContext Interface is used to create a new PannerNode, which is used to spatialize an incoming audio stream in 3D space.

The panner node is spatialized in relation to the AudioContext's AudioListener (defined by the BaseAudioContext.listener attribute), which represents the position and orientation of the person listening to the audio.

Note: The PannerNode.PannerNode constructor is the recommended way to create a PannerNode; see Creating an AudioNode.

Implementation

external PannerNode createPanner();