audio context close

This commit is contained in:
Samir 2017-11-14 23:33:41 +06:00
parent cc54870c99
commit 0c13e7558c

View file

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