diff dsp/signalconditioning/DFProcess.h @ 410:c5e1b25d5177

Fix some uninitialised values
author Chris Cannam <c.cannam@qmul.ac.uk>
date Mon, 07 Sep 2015 14:00:30 +0100
parents f5b5f64835b9
children ca658c7215a9
line wrap: on
line diff
--- a/dsp/signalconditioning/DFProcess.h	Tue Jul 21 07:34:15 2015 +0100
+++ b/dsp/signalconditioning/DFProcess.h	Mon Sep 07 14:00:30 2015 +0100
@@ -36,7 +36,20 @@
     unsigned int winPost; 
     double AlphaNormParam;
     bool isMedianPositive;
-    float Delta; //delta threshold used as an offset when computing the smoothed detection function
+    float delta; //delta threshold used as an offset when computing the smoothed detection function
+
+    DFProcConfig() :
+        length(0),
+        LPOrd(0),
+        LPACoeffs(NULL),
+        LPBCoeffs(NULL),
+        winPre(0),
+        winPost(0),
+        AlphaNormParam(0),
+        isMedianPositive(false),
+        delta(0)
+    {
+    }
 };
 
 class DFProcess  
@@ -73,7 +86,7 @@
     FiltFilt* m_FiltFilt;
 
     bool m_isMedianPositive;
-    float m_Delta; //add delta threshold
+    float m_delta; //add delta threshold
 };
 
 #endif