StereoPannerNode()

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.

The StereoPannerNode() constructor creates a new StereoPannerNode object which is an AudioNode that represents a simple stereo panner node that can be used to pan an audio stream left or right.

Syntax

var stereoPannerNode = StereoPannerNode(context, options)

Parameters

context
A reference to an AudioContext.
options Optional
Options are as follows:
  • pan: A floating point number in the range [-1,1] indicating the position of an AudioNode in an output image. The value -1 represents full left and 1 represents full right. The default value is 0.

Specifications

Specification Status Comment
Web Audio API
The definition of 'StereoPannerNode()' in that specification.
Working Draft Initial definition.

Browser Compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 55[1] ? ? 42 ?
Feature Android Webview Chrome for Android Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile
Basic support 55[1] 55[1] ? ? ? 42 ?

[1] Before Chrome 59, the default values were not supported. 

Document Tags and Contributors

 Contributors to this page: jpmedley, stevenellul
 Last updated by: jpmedley,