From 04fc8205dc1cc471af9473162fdab48d0f39847b Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 18 Jul 2018 16:46:13 +0200 Subject: Store and use laidback setting in milliseconds. --- plugin/drumgizmo_plugin.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugin') 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 //" " + //int2str(settings.latency_max.load()) + "\n" - " " + - int2str(settings.latency_laid_back.load()) + "\n" + " " + + float2str(settings.latency_laid_back_ms.load()) + "\n" " " + float2str(settings.latency_stddev.load()) + "\n" " " + @@ -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") != "") -- cgit v1.2.3