Skip to content

Commit e7820db

Browse files
committed
SoundManager.destroy now calls AudioContext.close (thanks @stoneman1 phaserjs#2237)
1 parent 2a1bf38 commit e7820db

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/sound/SoundManager.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,8 @@ Phaser.SoundManager.prototype = {
725725

726726
this.onSoundDecode.dispose();
727727

728+
this.context.close();
729+
728730
if (this.context && window['PhaserGlobal'])
729731
{
730732
// Store this in the PhaserGlobal window var, if set, to allow for re-use if the game is created again without the page refreshing

0 commit comments

Comments
 (0)