A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/apis/webaudio/PannerNode/distanceModel below:

distanceModel · WebPlatform Docs

distanceModel Summary

Determines which algorithm will be used to reduce the volume of an audio source as it moves away from the listener. See below for the available choices. The default is INVERSE_DISTANCE.

Property of apis/webaudio/PannerNodeapis/webaudio/PannerNode

Syntax
var result = PannerNode.distanceModel;
PannerNode.distanceModel = value;
Return Value

Returns an object of type unsigned shortunsigned short

Uses one of the following constant values:

Examples
var audioCtx = new AudioContext();
var panner = audioCtx.createPanner();
panner.distanceModel = 'inverse';
Related specifications
W3C Web Audio API
W3C Editor’s Draft

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4