4 ms·
I figured it out - I hope. Your suggestion was a major part of the solution - Chrome works great with just setting osc.gain.value = 1 But for this to work o
by ohadron 9y ago
I figured it out - I hope.
Your suggestion was a major part of the solution - Chrome works great with just setting
osc.gain.value = 1
But for this to work on Safari & FF it needs to be set like this:
oscVol.gain.setValueAtTime(1, startTime)
- fenomas 9y agoThat's what I meant, yeah. Ramps in web audio params don't go from the current value to the target value, they're treated as starting from whatever the previously scheduled value was. In this case there wasn't a previously scheduled value, so I guess behavior was undefined and the browsers differed in how they handled it.