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 /plugin | |
| parent | 7202cbf9e1ffdc19c5fbe46017ce8d1c9f8e467a (diff) | |
Connect the bleed control frame switch and add settings value for that.
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/drumgizmo_plugin.cc | 7 | 
1 files changed, 7 insertions, 0 deletions
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()) + "</value>\n"  		"  <value name=\"disk_cache_enable\">" +  		bool2str(settings.disk_cache_enable.load()) + "</value>\n" +		"  <value name=\"enable_bleed_control\">" + +		bool2str(settings.enable_bleed_control.load()) + "</value>\n"  		"  <value name=\"master_bleed\">" +  		float2str(settings.master_bleed.load()) + "</value>\n"  		"</config>"; @@ -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")));  | 
