From e3e60b52b4e6ea35f60eb745cae2d2b1ad236874 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Fri, 26 May 2017 01:01:26 +0200 Subject: Connect the bleed control frame switch and add settings value for that. --- plugin/drumgizmo_plugin.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugin') diff --git a/plugin/drumgizmo_plugin.cc b/plugin/drumgizmo_plugin.cc index 641faac..debe630 100644 --- a/plugin/drumgizmo_plugin.cc +++ b/plugin/drumgizmo_plugin.cc @@ -565,6 +565,8 @@ std::string DrumGizmoPlugin::ConfigStringIO::get() int2str(settings.disk_cache_chunk_size.load()) + "\n" " " + bool2str(settings.disk_cache_enable.load()) + "\n" + " " + + bool2str(settings.enable_bleed_control.load()) + "\n" " " + float2str(settings.master_bleed.load()) + "\n" ""; @@ -626,6 +628,11 @@ bool DrumGizmoPlugin::ConfigStringIO::set(std::string config_string) settings.disk_cache_enable.store(p.value("disk_cache_enable") == "true"); } + if(p.value("enable_bleed_control") != "") + { + settings.enable_bleed_control.store(p.value("enable_bleed_control") == "true"); + } + if(p.value("master_bleed") != "") { settings.master_bleed.store(str2float(p.value("master_bleed"))); -- cgit v1.2.3