Add a volume setting function to THREE.Audio
@@ -64,6 +64,12 @@ THREE.Audio.prototype.setRolloffFactor = function ( value ) {
};
+THREE.Audio.prototype.setVolume = function ( value ) {
+
+ this.gain.gain.value = value;
+};
THREE.Audio.prototype.updateMatrixWorld = ( function () {
var position = new THREE.Vector3();