diff --git a/src/audio/Audio.js b/src/audio/Audio.js index f332efc7b3dddb..2faf7830ced785 100644 --- a/src/audio/Audio.js +++ b/src/audio/Audio.js @@ -31,6 +31,7 @@ class Audio extends Object3D { this._startedAt = 0; this._progress = 0; + this._connected = false; this.filters = []; @@ -198,6 +199,8 @@ class Audio extends Object3D { } + this._connected = true; + return this; } @@ -222,6 +225,8 @@ class Audio extends Object3D { } + this._connected = false; + return this; } @@ -236,7 +241,7 @@ class Audio extends Object3D { if ( ! value ) value = []; - if ( this.isPlaying === true ) { + if ( this._connected === true ) { this.disconnect(); this.filters = value;