Howler.js – JavaScript audio library for the modern web
howlerjs.com
howlerjs.com
I haven't studied v2's differences in depth, but in v1 I made a few customizations to add timers, chained cross fades, smooth muting, and perceptual volume control (i.e. takes into account the logarithmic response of hearing).
https://github.com/seung-lab/howler.js/commit/fe445afd12cc7b...
https://github.com/seung-lab/sonic-shuffle/blob/master/js/So...
https://github.com/seung-lab/sonic-shuffle/blob/master/js/Mu...
Anyways, thanks Howler team, you made one of my projects much easier to do!
EDIT: Removed an inaccuracy, it's been a while since I looked at the code.
edit: maybe its company policy:
new Audio() gives Permission denied
It also confused me, they should probably have done something in 2D instead.
[1] https://goldfirestudios.com/blog/143/Howler.js-v2.0-Released