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:06:58 +0100
commit216f7933c5b4b65f7f45d3c459ead10f160d124b (patch)
tree7d7e0c6a7af1723a4d536bd4d12c50572db77896 /synth/load.cpp
parent8320af55e716f352f2720801fcd73913f2e7d19c (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...");
}