createGain

external fun createGain(): GainNode(source)

The createGain() method of the BaseAudioContext interface creates a GainNode, which can be used to control the overall gain (or volume) of the audio graph.

MDN Reference