Browse Source

Update PositionalAudio.html

Michael Herzog 7 years ago
parent
commit
8fa8507eae
1 changed files with 3 additions and 3 deletions
  1. 3 3
      docs/api/audio/PositionalAudio.html

+ 3 - 3
docs/api/audio/PositionalAudio.html

@@ -33,9 +33,9 @@
 		//Load a sound and set it as the PositionalAudio object's buffer
 		var audioLoader = new THREE.AudioLoader();
 		audioLoader.load( 'sounds/song.ogg', function( buffer ) {
-			sound1.setBuffer( buffer );
-			sound1.setRefDistance( 20 );
-			sound1.play();
+			sound.setBuffer( buffer );
+			sound.setRefDistance( 20 );
+			sound.play();
 		});
 
 		//Create an object for the sound to play from