summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-07-18 16:46:13 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-07-18 16:46:13 +0200
commit04fc8205dc1cc471af9473162fdab48d0f39847b (patch)
tree9e8cd5c67928ae595d0c09e4f889d106626e18fa /plugin
parenta0484778a9953dfd1948bf4dac71c51deab18cab (diff)
Store and use laidback setting in milliseconds.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/drumgizmo_plugin.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin/drumgizmo_plugin.cc b/plugin/drumgizmo_plugin.cc
index 24a9d00..847d8d2 100644
--- a/plugin/drumgizmo_plugin.cc
+++ b/plugin/drumgizmo_plugin.cc
@@ -576,8 +576,8 @@ std::string DrumGizmoPlugin::ConfigStringIO::get()
// Do not store/reload this value
//" <value name=\"latency_max\">" +
//int2str(settings.latency_max.load()) + "</value>\n"
- " <value name=\"latency_laid_back\">" +
- int2str(settings.latency_laid_back.load()) + "</value>\n"
+ " <value name=\"latency_laid_back_ms\">" +
+ float2str(settings.latency_laid_back_ms.load()) + "</value>\n"
" <value name=\"latency_stddev\">" +
float2str(settings.latency_stddev.load()) + "</value>\n"
" <value name=\"latency_regain\">" +
@@ -667,9 +667,9 @@ bool DrumGizmoPlugin::ConfigStringIO::set(std::string config_string)
// settings.latency_max.store(str2int(p.value("latency_max")));
//}
- if(p.value("latency_laid_back") != "")
+ if(p.value("latency_laid_back_ms") != "")
{
- settings.latency_laid_back.store(str2int(p.value("latency_laid_back")));
+ settings.latency_laid_back_ms.store(str2float(p.value("latency_laid_back_ms")));
}
if(p.value("latency_stddev") != "")