I actually had to implement this myself for a project, literally few days ago.
I had almost 0 knowledge of how audio files work or how the Web Audio API works. The implementation is very barebones, not very flexible, and has no error handling. But hey, if someone will find it useful regardless, here is how I did it:
https://gist.github.com/2Pacalypse-/241c37adfff127bd5c66f3e2...
I actually had to implement this myself for a project, literally few days ago.
I had almost 0 knowledge of how audio files work or how the Web Audio API works. The implementation is very barebones, not very flexible, and has no error handling. But hey, if someone will find it useful regardless, here is how I did it: https://gist.github.com/2Pacalypse-/241c37adfff127bd5c66f3e2...