瀏覽代碼

SEA3DLoader: Using THREE.PositionalAudio. FYI @sunag.

Mr.doob 9 年之前
父節點
當前提交
0704c6aae8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/loaders/sea3d/SEA3DLoader.js

+ 1 - 1
examples/js/loaders/sea3d/SEA3DLoader.js

@@ -1402,7 +1402,7 @@ THREE.SEA3D.prototype.readSoundPoint = function( sea ) {
 
 
 	}
 	}
 
 
-	var sound3d = new THREE.Audio( this.audioListener );
+	var sound3d = new THREE.PositionalAudio( this.audioListener );
 
 
 	sound3d.load( sea.sound.tag );
 	sound3d.load( sea.sound.tag );
 	sound3d.autoplay = sea.autoPlay;
 	sound3d.autoplay = sea.autoPlay;