diff src/MatchVampPlugin.cpp @ 148:d307803083e6 structure

Some conversion fixes
author Chris Cannam
date Thu, 22 Jan 2015 16:55:27 +0000
parents 6914a6a01ffc
children fcf0dd0166b1
line wrap: on
line diff
--- a/src/MatchVampPlugin.cpp	Thu Jan 22 12:04:44 2015 +0000
+++ b/src/MatchVampPlugin.cpp	Thu Jan 22 16:55:27 2015 +0000
@@ -211,7 +211,7 @@
     desc.description = "Total frame energy threshold below which a feature will be regarded as silent";
     desc.minValue = 0;
     desc.maxValue = 1;
-    desc.defaultValue = m_defaultFcParams.silenceThreshold;
+    desc.defaultValue = (float)m_defaultFcParams.silenceThreshold;
     desc.isQuantized = false;
     list.push_back(desc);
     
@@ -282,7 +282,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;
     }
     
     return 0.0;