diff dsp/signalconditioning/DFProcess.h @ 185:2ae4ceb76ac3

Fix some uninitialised values
author Chris Cannam
date Mon, 07 Sep 2015 14:00:30 +0100
parents 715f779d0b4f
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