提交 10d2d346 编写于 作者: M Mugen87

Audio: Fix setting of .isPlaying when stopping the audio source

上级 923c3490
......@@ -119,6 +119,7 @@ Audio.prototype = Object.assign( Object.create( Object3D.prototype ), {
if ( this.isPlaying === true ) {
this.source.stop();
this.source.onended = null;
this.offset += ( this.context.currentTime - this.startTime ) * this.playbackRate;
this.isPlaying = false;
......@@ -138,6 +139,7 @@ Audio.prototype = Object.assign( Object.create( Object3D.prototype ), {
}
this.source.stop();
this.source.onended = null;
this.offset = 0;
this.isPlaying = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册