mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-18 22:36:27 +01:00
howler global fix
This commit is contained in:
parent
b8cf28a0a0
commit
0462d08e15
@ -1,4 +1,4 @@
|
|||||||
import { Howl } from 'howler';
|
import { Howl, Howler } from 'howler';
|
||||||
import { Nitro } from '../../Nitro';
|
import { Nitro } from '../../Nitro';
|
||||||
import { SoundManagerEvent } from '../events';
|
import { SoundManagerEvent } from '../events';
|
||||||
import { TraxData } from '../trax/TraxData';
|
import { TraxData } from '../trax/TraxData';
|
||||||
@ -47,6 +47,7 @@ export class MusicPlayer
|
|||||||
{
|
{
|
||||||
this._isPlaying = false;
|
this._isPlaying = false;
|
||||||
//this.emit('paused', this._currentPos);
|
//this.emit('paused', this._currentPos);
|
||||||
|
|
||||||
Howler.stop();
|
Howler.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,7 +67,9 @@ export class MusicPlayer
|
|||||||
{
|
{
|
||||||
this._isPlaying = false;
|
this._isPlaying = false;
|
||||||
clearInterval(this._tickerInterval);
|
clearInterval(this._tickerInterval);
|
||||||
|
|
||||||
Howler.stop();
|
Howler.stop();
|
||||||
|
|
||||||
this._currentSong = undefined;
|
this._currentSong = undefined;
|
||||||
this._startPos = 0;
|
this._startPos = 0;
|
||||||
this._playLength = 0;
|
this._playLength = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user