docs.rodeo

MDN Web Docs mirror

PannerNode: distanceModel property

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

The distanceModel property of the {{ domxref("PannerNode") }}  interface is an enumerated value determining which algorithm to use to reduce the volume of the audio source as it moves away from the listener.

The possible values are:

inverse is the default value of distanceModel.

Value

An enum — see DistanceModelType.

Examples

See BaseAudioContext.createPanner() for example code.

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN