createGain
Summary
Creates a GainNode, used to control the volume of audio.
Method of apis/webaudio/AudioContextapis/webaudio/AudioContext
Syntax
var = AudioContext.createGain();
Return Value
Returns an object of type
GainNode
Examples
var audioCtx = new AudioContext();
var gainNode = audioCtx.createGain();
Related specifications
- W3C Web Audio API
- W3C Editor’s Draft