From 0462d08e15d9bc2044cdb083db9c45a9fe6419e2 Mon Sep 17 00:00:00 2001 From: dank074 Date: Tue, 8 Nov 2022 17:34:28 -0600 Subject: [PATCH] howler global fix --- src/nitro/sound/music/MusicPlayer.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nitro/sound/music/MusicPlayer.ts b/src/nitro/sound/music/MusicPlayer.ts index c87f6f88..1a1b6a80 100644 --- a/src/nitro/sound/music/MusicPlayer.ts +++ b/src/nitro/sound/music/MusicPlayer.ts @@ -1,4 +1,4 @@ -import { Howl } from 'howler'; +import { Howl, Howler } from 'howler'; import { Nitro } from '../../Nitro'; import { SoundManagerEvent } from '../events'; import { TraxData } from '../trax/TraxData'; @@ -47,6 +47,7 @@ export class MusicPlayer { this._isPlaying = false; //this.emit('paused', this._currentPos); + Howler.stop(); } @@ -66,7 +67,9 @@ export class MusicPlayer { this._isPlaying = false; clearInterval(this._tickerInterval); + Howler.stop(); + this._currentSong = undefined; this._startPos = 0; this._playLength = 0;