浏览代码

Merge pull request #18676 from Mugen87/dev11

Audio: Add missing sign in pause().
Michael Herzog 5 年之前
父节点
当前提交
892ad919b0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/audio/Audio.js

+ 1 - 1
src/audio/Audio.js

@@ -142,7 +142,7 @@ Audio.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 
 		if ( this.isPlaying === true ) {
 		if ( this.isPlaying === true ) {
 
 
-			this._pausedAt = Math.max( this.context.currentTime - this._startedAt, 0 ) * this.playbackRate;
+			this._pausedAt += Math.max( this.context.currentTime - this._startedAt, 0 ) * this.playbackRate;
 
 
 			this.source.stop();
 			this.source.stop();
 			this.source.onended = null;
 			this.source.onended = null;