Skip to content

Commit

Permalink
adding onended handler to example
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdavidmills committed Apr 29, 2019
1 parent e7f0c80 commit 337cbef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion audio-buffer/index.html
Expand Up @@ -57,6 +57,10 @@ <h1>AudioBuffer example</h1>
source.connect(audioCtx.destination);
// start the source playing
source.start();

source.onended = () => {
console.log('White noise finished');
}
}
</script>
</html>
</html>

0 comments on commit 337cbef

Please sign in to comment.