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.

coneOuterGain

Summary

A parameter for directional audio sources, this is the amount of volume reduction outside of the coneOuterAngle. The default value is 0.

Property of apis/webaudio/PannerNodeapis/webaudio/PannerNode

Syntax

var result = PannerNode.coneOuterGain;
PannerNode.coneOuterGain = value;

Return Value

Returns an object of type NumberNumber

Examples

var audioCtx = new AudioContext();
var panner = audioCtx.createPanner();
panner.coneOuterGain = 0;

Related specifications

W3C Web Audio API
W3C Editor’s Draft