瀏覽代碼

Audio: Fix pause

Mugen87 7 年之前
父節點
當前提交
6d635efe76
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/audio/Audio.js

+ 1 - 1
src/audio/Audio.js

@@ -108,7 +108,7 @@ Audio.prototype = Object.assign( Object.create( Object3D.prototype ), {
 		if ( this.isPlaying === true ) {
 
 			this.source.stop();
-			this.offset += this.context.currentTime - this.startTime;
+			this.offset += ( this.context.currentTime - this.startTime ) * this.playbackRate;
 			this.isPlaying = false;
 
 		}