diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-10-14 17:50:01 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-02-18 11:43:41 +0100 |
commit | 6a90e6c24f05c57cdbe19e5cc44c77c9e5810148 (patch) | |
tree | d90fab1ab3bc5aa421ca671990590f9ded391709 /src | |
parent | 0dc69ba161bb0c8fce2eb0ab3c5eb897f7aa92a7 (diff) |
Added plugin store/restore of latency filter settings, added the missing settings to the lv2 unittest and added the missing SettingsGetter and SettingsNotifier parts.
Diffstat (limited to 'src')
-rw-r--r-- | src/settings.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/settings.h b/src/settings.h index cdce066..b2fe3bb 100644 --- a/src/settings.h +++ b/src/settings.h @@ -155,6 +155,12 @@ struct SettingsGetter SettingRef<bool> enable_bleed_control; SettingRef<float> master_bleed; + SettingRef<bool> enable_latency_modifier; + SettingRef<std::size_t> latency_max; + SettingRef<int> latency_laid_back; + SettingRef<float> latency_stddev; + SettingRef<float> latency_regain; + SettingsGetter(Settings& settings) : drumkit_file(settings.drumkit_file) , drumkit_load_status(settings.drumkit_load_status) @@ -184,6 +190,11 @@ struct SettingsGetter , current_file{settings.current_file} , enable_bleed_control{settings.enable_bleed_control} , master_bleed{settings.master_bleed} + , enable_latency_modifier{settings.enable_latency_modifier} + , latency_max{settings.latency_max} + , latency_laid_back{settings.latency_laid_back} + , latency_stddev{settings.latency_stddev} + , latency_regain{settings.latency_regain} { } }; @@ -229,6 +240,12 @@ public: Notifier<bool> enable_bleed_control; Notifier<float> master_bleed; + Notifier<bool> enable_latency_modifier; + Notifier<std::size_t> latency_max; + Notifier<int> latency_laid_back; + Notifier<float> latency_stddev; + Notifier<float> latency_regain; + void evaluate() { #define EVAL(x) if(settings.x.hasChanged()) { x(settings.x.getValue()); } @@ -269,6 +286,12 @@ public: EVAL(enable_bleed_control); EVAL(master_bleed); + + EVAL(enable_latency_modifier); + EVAL(latency_max); + EVAL(latency_laid_back); + EVAL(latency_stddev); + EVAL(latency_regain); } SettingsNotifier(Settings& settings) |