Home:ALL Converter>Multiple source web audio and gain

Multiple source web audio and gain

Ask Time:2016-03-15T19:52:20         Author:Diederik

Json Formatter

I'm new to the web-audio api, and sound design in general. So this will probably be a noob question.

I'm playing multiple tracks using the createBufferSource(). To set the gain on the tracks, I'm also using the createGain() function of the audio api.

Do I need to change the gain on the tracks according to the number of tracks playing to keep the overall volume level? In other words, is the overall volume higher depending on how many tracks are playing?

Author:Diederik,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/36069757/multiple-source-web-audio-and-gain
yy