December 2, 2019 at 1:03 am #299807billygardParticipant
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.
- You must be logged in to reply to this topic.