- This topic has 0 replies, 1 voice, and was last updated 1 year, 5 months ago by .
I found a curious bug in WebAudio API’s gainNode while using the familiar source->gainNode->destination contruct. In the context of my game code, the value range for gainNode.gain.value seems to be -1 to +1, rather than 0 to 1. The only gain value that is silent is -1. A gain value of 0 plays it at half-volume.
I thought zero was supposed to always be the silent value, regardless of whether using linear or exponential.
When running the game code, I can examine the value of gainNode.gain.value in a debug window, and it shows the value I assigned it to. So the numbers weren’t modified before assigning it to the gainNode.