浏览代码

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.autoplay = sea.autoPlay;