danigb / soundfont-player

Quick soundfont loader and player for browser
MIT License
453 stars 60 forks source link

How to stop all sounds #96

Open abulka opened 2 years ago

abulka commented 2 years ago

Whilst I can turn a sound off with envelope.stop(audioContext.currentTime), is there a way to stop all sounds? Pretty handy in an emergency.

Webaudiofont player for example has a function player.cancelQueue(audioContext);