diff options
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 87ce160..a91606b 100644 --- a/plugin/drumgizmo_plugin.cc +++ b/plugin/drumgizmo_plugin.cc @@ -612,6 +612,8 @@ std::string DrumGizmoPlugin::ConfigStringIO::get() float2str(settings.velocity_randomiser_weight.load()) + "</value>\n" " <value name=\"enable_resampling\">" + bool2str(settings.enable_resampling.load()) + "</value>\n" + " <value name=\"resampling_quality\">" + + float2str(settings.resampling_quality.load()) + "</value>\n" " <value name=\"disk_cache_upper_limit\">" + int2str(settings.disk_cache_upper_limit.load()) + "</value>\n" " <value name=\"disk_cache_chunk_size\">" + @@ -713,6 +715,11 @@ bool DrumGizmoPlugin::ConfigStringIO::set(std::string config_string) settings.enable_resampling.store(p.value("enable_resampling") == "true"); } + if(p.value("resampling_quality") != "") + { + settings.resampling_quality.store(str2float(p.value("resampling_quality"))); + } + if(p.value("disk_cache_upper_limit") != "") { settings.disk_cache_upper_limit.store(str2ll(p.value("disk_cache_upper_limit"))); |