I would like to create a various audio playlist (see pic) with Hype and I would like to use Howler.js for this. My main goal is to unload the audio when playing a new one (see this link)
This is great example, thank you. However I would like to play one audio at a time meaning "stop all sound when playing a new sound" (overlapping audio not allowed). Perhaps something like this
function newSong(url) {
if (sound != null) {
sound.stop();
sound.unload();
sound = null;
}
sound = new Howl({
src: [url]
});
sound.play();
}