Sound board
A simple abstraction around web audio apis to make interactions easier for loading files and playing them.
Install
npm i sound-board --save
Usage
Loading sound
soundBoard // if something happens on download // orsoundBoard // if something happens on a download // or a local buffersoundBoard // if something happens on a download
Playing sound
// to play a sound at a certain timesoundBoard // starts at 1.337 seconds // to pause the soundsoundBoard // to stop the soundsoundBoard
Events
soundBoard // when starting to play the soundsoundBoard // when pausing the soundsoundBoard // when the sound endssoundBoard // some data when song is playing