diff src/MatchVampPlugin.cpp @ 165:31602361fb65 refactors

Build stuff
author Chris Cannam
date Fri, 30 Jan 2015 14:54:18 +0000
parents cf1282d1f940
children eeed3498fe96
line wrap: on
line diff
--- a/src/MatchVampPlugin.cpp	Fri Jan 30 12:57:29 2015 +0000
+++ b/src/MatchVampPlugin.cpp	Fri Jan 30 14:54:18 2015 +0000
@@ -243,8 +243,8 @@
     desc.name = "Silence threshold";
     desc.description = "Total frame energy threshold below which a feature will be regarded as silent";
     desc.minValue = 0;
-    desc.maxValue = 0.1;
-    desc.defaultValue = m_defaultFcParams.silenceThreshold;
+    desc.maxValue = 0.1f;
+    desc.defaultValue = (float)m_defaultFcParams.silenceThreshold;
     desc.isQuantized = false;
     list.push_back(desc);
 
@@ -335,7 +335,7 @@
     } else if (name == "smooth") {
         return m_smooth ? 1.0 : 0.0;
     } else if (name == "silencethreshold") {
-        return m_fcParams.silenceThreshold;
+        return (float)m_fcParams.silenceThreshold;
     } else if (name == "metric") {
         return (int)m_dParams.metric;
     } else if (name == "noise") {