Web audio api GainNode value MaxValue 是多少

Web audio api GainNode value what is the MaxValue

我查看了这个页面: https://developer.mozilla.org/en-US/docs/Web/API/GainNode/gain 我没有找到他们在哪里写的最大值和最小值你可以输入。

增益AudioParam的最大值为most-positive-single-float值。这是一个高得离谱的数字。

https://webaudio.github.io/web-audio-api/#dom-gainnode-gain

您很可能不需要它。由于 GainNode 只是将信号相乘,任何大于 1 的值都已经在放大它。