I encountered an issue while working on a 3D audio example using three r73:
// ...
var listener = new THREE.AudioListener();
camera.add( listener );
var sound1 = new THREE.Audio( listener );
sound1.load( 'sounds/song.ogg' );
sound1.setVolume(1);
sound1.setRefDistance(10);
sound1.autoplay = true;
mesh.add(sound1);
However, I received an error stating setRefDistance is not a function
.
When I remove the line sound1.setRefDistance(10);
, the sound plays but lacks "3D awareness".
I'm puzzled as to why my implementation differs from this similar example: . The only variance is that I am working in an angular context + nodejs environment.