Skip to content

Commit 3d220dc

Browse files
committed
Audio: Clean up.
1 parent 8ee7b5d commit 3d220dc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/audio/Audio.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ THREE.Audio.prototype = Object.assign( Object.create( THREE.Object3D.prototype )
103103

104104
this.source.stop();
105105
this.startTime = this.context.currentTime;
106+
this.isPlaying = false;
106107

107108
return this;
108109

@@ -116,10 +117,10 @@ THREE.Audio.prototype = Object.assign( Object.create( THREE.Object3D.prototype )
116117
return;
117118

118119
}
119-
120-
this.isPlaying = false;
120+
121121
this.source.stop();
122122
this.startTime = 0;
123+
this.isPlaying = false;
123124

124125
return this;
125126

0 commit comments

Comments
 (0)