From 570065458c6dac9e64493ca3f8453817bb7c3165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Thu, 25 May 2017 21:09:12 +0200 Subject: Read/Write master_bleed value from/to plugin state. --- plugin/drumgizmo_plugin.cc | 7 +++++++ 1 file changed, 7 insertions(+) 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()) + "\n" " " + bool2str(settings.disk_cache_enable.load()) + "\n" + " " + + float2str(settings.master_bleed.load()) + "\n" ""; } @@ -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 != "") { -- cgit v1.2.3