audio context close

pull/14/head
Samir 7 years ago
parent cc54870c99
commit 0c13e7558c

@ -81,6 +81,8 @@ PCMPlayer.prototype.destroy = function() {
clearInterval(this.interval); clearInterval(this.interval);
} }
this.samples = null; this.samples = null;
this.audioCtx.close();
this.audioCtx = null;
}; };
PCMPlayer.prototype.flush = function() { PCMPlayer.prototype.flush = function() {

Loading…
Cancel
Save