diff options
author | André Nusser <andre.nusser@googlemail.com> | 2017-05-26 01:01:26 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2017-05-26 01:01:26 +0200 |
commit | e3e60b52b4e6ea35f60eb745cae2d2b1ad236874 (patch) | |
tree | a3c67c490127c47eb619482edf769cbb17c2df4e /src/settings.h | |
parent | 7202cbf9e1ffdc19c5fbe46017ce8d1c9f8e467a (diff) |
Connect the bleed control frame switch and add settings value for that.
Diffstat (limited to 'src/settings.h')
-rw-r--r-- | src/settings.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/settings.h b/src/settings.h index b23f919..89f898c 100644 --- a/src/settings.h +++ b/src/settings.h @@ -87,6 +87,7 @@ struct Settings Atomic<std::size_t> number_of_files_loaded{0}; Atomic<std::string> current_file{""}; + Atomic<bool> enable_bleed_control{false}; Atomic<float> master_bleed{1.0f}; }; @@ -126,6 +127,7 @@ struct SettingsGetter SettingRef<std::size_t> number_of_files_loaded; SettingRef<std::string> current_file; + SettingRef<bool> enable_bleed_control; SettingRef<float> master_bleed; SettingsGetter(Settings& settings) @@ -154,6 +156,7 @@ struct SettingsGetter , number_of_files{settings.number_of_files} , number_of_files_loaded{settings.number_of_files_loaded} , current_file{settings.current_file} + , enable_bleed_control{settings.enable_bleed_control} , master_bleed{settings.master_bleed} { } @@ -196,6 +199,7 @@ public: Notifier<std::size_t> number_of_files_loaded; Notifier<std::string> current_file; + Notifier<bool> enable_bleed_control; Notifier<float> master_bleed; void evaluate() @@ -235,6 +239,7 @@ public: EVAL(number_of_files_loaded); EVAL(current_file); + EVAL(enable_bleed_control); EVAL(master_bleed); } |