Closed zoombahh closed 5 years ago
Interesting. Just around that time I made some tweaks to the way audio is handled. Right now it reuses the same audio context for all sound, so do you still run into this?
Also, what browser were you running into this on?
now it works a treat, thanks.
I ran into it on a stale xubuntu machine with integrated onboard audio:
Chromium | 65.0.3325.181 (Official Build) Built on Ubuntu , running on Ubuntu 14.04 (64-bit)
on a different pc i could spam the button 50 times and it still worked fine.
Fixed and tested live :thumbsup:
thanks for the very nice demo. I ran into an audio Problem trying the different buttons:
it seems the number of open AudioContext's allowed varies. to test I used a connditional breakpoint to close them 100 ms after the decay ends:
window.setTimeout(() => audioContext.close(), decay*1000+100) && 0
Im not sure if closing the contexts or reusing one would be the better Route, its probably just a matter of style.