Back to Content

PannerNode: panningModel property

files/en-us/web/api/pannernode/panningmodel/index.md

latest951 B
Original Source

{{ APIRef("Web Audio API") }}

The panningModel property of the {{ domxref("PannerNode") }} interface is an enumerated value determining which spatialization algorithm to use to position the audio in 3D space.

The possible values are:

  • equalpower: Represents the equal-power panning algorithm, generally regarded as simple and efficient. equalpower is the default value.
  • HRTF: Renders a stereo output of higher quality than equalpower — it uses a convolution with measured impulse responses from human subjects.

Value

An enum — see PanningModelType.

Examples

See BaseAudioContext.createPanner() for example code.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also