This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

rolloffFactor

Summary

Describes how quickly the volume is reduced as source moves away from listener. The default value is 1.

Property of apis/webaudio/PannerNodeapis/webaudio/PannerNode

Syntax

var result = PannerNode.rolloffFactor;
PannerNode.rolloffFactor = value;

Return Value

Returns an object of type NumberNumber

Examples

var audioCtx = new AudioContext();
var panner = audioCtx.createPanner();
panner.rolloffFactor = 1;

Related specifications

W3C Web Audio API
W3C Editor’s Draft