summaryrefslogtreecommitdiff
path: root/synth/load.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@thinkpad.(none)>2011-01-09 13:06:58 +0100
committerFlorian Jung <flo@thinkpad.(none)>2011-01-09 13:22:20 +0100
commit65fe359eb034d8e4a4a7f4d673af6f473ef27ff8 (patch)
tree97c71e37ff314cd1a244b85c914809ae544e2fd8 /synth/load.cpp
parent918f4c99f37b9ca2ae2bbd6c906b7e0f994af014 (diff)
envelope_update_frames can now be set via CLI and config file
Diffstat (limited to 'synth/load.cpp')
-rw-r--r--synth/load.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/synth/load.cpp b/synth/load.cpp
index d88ec3e..9b80106 100644
--- a/synth/load.cpp
+++ b/synth/load.cpp
@@ -176,6 +176,13 @@ void read_config(const char *cfg, bool complain=true)
else
output_verbose("NOTE: ignoring value for filter_update_freq, another setting overrides this.");
}
+ else if ((var=="envelope_update_freq") || (var=="env_update_freq"))
+ {
+ if (envelope_update_freq_hz==0)
+ envelope_update_freq_hz=valf;
+ else
+ output_verbose("NOTE: ignoring value for envelope_update_freq, another setting overrides this.");
+ }
else
output_warning("WARNING: unknown variable '"+var+"'. ignoring it...");
}