mirror of
https://github.com/samirkumardas/pcm-player.git
synced 2025-04-07 01:17:30 +02:00
audio context close
This commit is contained in:
parent
cc54870c99
commit
0c13e7558c
1 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,8 @@ PCMPlayer.prototype.destroy = function() {
|
|||
clearInterval(this.interval);
|
||||
}
|
||||
this.samples = null;
|
||||
this.audioCtx.close();
|
||||
this.audioCtx = null;
|
||||
};
|
||||
|
||||
PCMPlayer.prototype.flush = function() {
|
||||
|
|
Loading…
Add table
Reference in a new issue