diff --git a/pcm-player.js b/pcm-player.js index 15872d6..eb5a73f 100644 --- a/pcm-player.js +++ b/pcm-player.js @@ -81,6 +81,8 @@ PCMPlayer.prototype.destroy = function() { clearInterval(this.interval); } this.samples = null; + this.audioCtx.close(); + this.audioCtx = null; }; PCMPlayer.prototype.flush = function() {