|
@@ -22,6 +22,7 @@ THREE.Audio = function ( listener ) {
|
|
|
this.isPlaying = false;
|
|
|
this.hasPlaybackControl = true;
|
|
|
this.sourceType = 'empty';
|
|
|
+
|
|
|
this.filter = null;
|
|
|
|
|
|
};
|
|
@@ -161,8 +162,16 @@ THREE.Audio.prototype.disconnect = function () {
|
|
|
|
|
|
};
|
|
|
|
|
|
+THREE.Audio.prototype.getFilter = function () {
|
|
|
+
|
|
|
+ return this.filter;
|
|
|
+
|
|
|
+};
|
|
|
+
|
|
|
THREE.Audio.prototype.setFilter = function ( value ) {
|
|
|
|
|
|
+ if ( value === undefined ) value = null;
|
|
|
+
|
|
|
if ( this.isPlaying === true ) {
|
|
|
|
|
|
this.disconnect();
|
|
@@ -177,12 +186,6 @@ THREE.Audio.prototype.setFilter = function ( value ) {
|
|
|
|
|
|
};
|
|
|
|
|
|
-THREE.Audio.prototype.getFilter = function () {
|
|
|
-
|
|
|
- return this.filter;
|
|
|
-
|
|
|
-};
|
|
|
-
|
|
|
THREE.Audio.prototype.setPlaybackRate = function ( value ) {
|
|
|
|
|
|
if ( this.hasPlaybackControl === false ) {
|