提交 3d220dc0 编写于 作者: M Mr.doob

Audio: Clean up.

上级 8ee7b5d7
......@@ -103,6 +103,7 @@ THREE.Audio.prototype = Object.assign( Object.create( THREE.Object3D.prototype )
this.source.stop();
this.startTime = this.context.currentTime;
this.isPlaying = false;
return this;
......@@ -116,10 +117,10 @@ THREE.Audio.prototype = Object.assign( Object.create( THREE.Object3D.prototype )
return;
}
this.isPlaying = false;
this.source.stop();
this.startTime = 0;
this.isPlaying = false;
return this;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册