Просмотр исходного кода

AudioListener: Renamed getOutputNode to getInput.

Mr.doob 9 лет назад
Родитель
Сommit
742c7c0786
2 измененных файлов с 2 добавлено и 2 удалено
  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.gain = this.context.createGain();
-	this.gain.connect( listener.getOutputNode() );
+	this.gain.connect( listener.getInput() );
 
 	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.constructor = THREE.AudioListener;
 
-THREE.AudioListener.prototype.getOutputNode = function () {
+THREE.AudioListener.prototype.getInput = function () {
 
 	return this.gain;