mirror of
https://github.com/overte-org/overte.git
synced 2025-07-15 22:16:55 +02:00
Fix reverbTest script
This commit is contained in:
parent
b1b26bc8a5
commit
e5f5d3835c
1 changed files with 4 additions and 4 deletions
|
@ -35,8 +35,8 @@ var audioOptions = new AudioEffectOptions({
|
||||||
wetDryMix: 50,
|
wetDryMix: 50,
|
||||||
});
|
});
|
||||||
|
|
||||||
AudioDevice.setReverbOptions(audioOptions);
|
Audio.setReverbOptions(audioOptions);
|
||||||
AudioDevice.setReverb(true);
|
Audio.setReverb(true);
|
||||||
print("Reverb is ON.");
|
print("Reverb is ON.");
|
||||||
|
|
||||||
var panel = new Panel(10, 160);
|
var panel = new Panel(10, 160);
|
||||||
|
@ -66,7 +66,7 @@ var parameters = [
|
||||||
]
|
]
|
||||||
|
|
||||||
function setter(name) {
|
function setter(name) {
|
||||||
return function(value) { audioOptions[name] = value; AudioDevice.setReverbOptions(audioOptions); }
|
return function(value) { audioOptions[name] = value; Audio.setReverbOptions(audioOptions); }
|
||||||
}
|
}
|
||||||
|
|
||||||
function getter(name) {
|
function getter(name) {
|
||||||
|
@ -89,7 +89,7 @@ Controller.mouseReleaseEvent.connect(function(event) { return panel.mouseRelease
|
||||||
|
|
||||||
function scriptEnding() {
|
function scriptEnding() {
|
||||||
panel.destroy();
|
panel.destroy();
|
||||||
AudioDevice.setReverb(false);
|
Audio.setReverb(false);
|
||||||
print("Reverb is OFF.");
|
print("Reverb is OFF.");
|
||||||
}
|
}
|
||||||
Script.scriptEnding.connect(scriptEnding);
|
Script.scriptEnding.connect(scriptEnding);
|
||||||
|
|
Loading…
Reference in a new issue