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.

coneOuterAngle

Summary

A parameter for directional audio sources, this is an angle outside of which the volume will be reduced to a constant value of coneOuterGain. The default value is 360.

Property of apis/webaudio/PannerNodeapis/webaudio/PannerNode

Syntax

var result = PannerNode.coneOuterAngle;
PannerNode.coneOuterAngle = value;

Return Value

Returns an object of type NumberNumber

Examples

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

Related specifications

W3C Web Audio API
W3C Editor’s Draft