Browse Source

AudioListener: Renamed getOutputNode to getInput.

Mr.doob 9 years ago
parent
commit
742c7c0786
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/audio/Audio.js
  2. 1 1
      src/audio/AudioListener.js

+ 1 - 1
src/audio/Audio.js

@@ -13,7 +13,7 @@ THREE.Audio = function ( listener ) {
 	this.source.onended = this.onEnded.bind( this );
 	this.source.onended = this.onEnded.bind( this );
 
 
 	this.gain = this.context.createGain();
 	this.gain = this.context.createGain();
-	this.gain.connect( listener.getOutputNode() );
+	this.gain.connect( listener.getInput() );
 
 
 	this.autoplay = false;
 	this.autoplay = false;
 
 

+ 1 - 1
src/audio/AudioListener.js

@@ -19,7 +19,7 @@ THREE.AudioListener = function () {
 THREE.AudioListener.prototype = Object.create( THREE.Object3D.prototype );
 THREE.AudioListener.prototype = Object.create( THREE.Object3D.prototype );
 THREE.AudioListener.prototype.constructor = THREE.AudioListener;
 THREE.AudioListener.prototype.constructor = THREE.AudioListener;
 
 
-THREE.AudioListener.prototype.getOutputNode = function () {
+THREE.AudioListener.prototype.getInput = function () {
 
 
 	return this.gain;
 	return this.gain;