summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-05-25 21:09:12 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-05-25 21:09:12 +0200
commit570065458c6dac9e64493ca3f8453817bb7c3165 (patch)
tree0acedac9a6dbe86ba71a662fb3ec60d9ba47a2f3
parent19af1522d529293a068453bd5ce9f0d249056c3d (diff)
Read/Write master_bleed value from/to plugin state.
-rw-r--r--plugin/drumgizmo_plugin.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugin/drumgizmo_plugin.cc b/plugin/drumgizmo_plugin.cc
index 19b0b89..641faac 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()) + "</value>\n"
" <value name=\"disk_cache_enable\">" +
bool2str(settings.disk_cache_enable.load()) + "</value>\n"
+ " <value name=\"master_bleed\">" +
+ float2str(settings.master_bleed.load()) + "</value>\n"
"</config>";
}
@@ -624,6 +626,11 @@ bool DrumGizmoPlugin::ConfigStringIO::set(std::string config_string)
settings.disk_cache_enable.store(p.value("disk_cache_enable") == "true");
}
+ if(p.value("master_bleed") != "")
+ {
+ settings.master_bleed.store(str2float(p.value("master_bleed")));
+ }
+
std::string newkit = p.value("drumkitfile");
if(newkit != "")
{