diff dsp/rateconversion/Decimator.h @ 505:930b5b0f707d

Merge branch 'codestyle-and-tidy'
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 05 Jun 2019 12:55:15 +0100
parents af5b7ef02aa7
children
line wrap: on
line diff
--- a/dsp/rateconversion/Decimator.h	Thu May 30 16:18:13 2019 +0100
+++ b/dsp/rateconversion/Decimator.h	Wed Jun 05 12:55:15 2019 +0100
@@ -12,8 +12,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef DECIMATOR_H
-#define DECIMATOR_H
+#ifndef QM_DSP_DECIMATOR_H
+#define QM_DSP_DECIMATOR_H
 
 /**
  * Decimator carries out a fast downsample by a power-of-two
@@ -34,7 +34,7 @@
      * is obtained through getHighestSupportedFactor(); for higher
      * factors, you will need to chain more than one decimator.
      */
-    Decimator( unsigned int inLength, unsigned int decFactor );
+    Decimator(int inLength, int decFactor);
     virtual ~Decimator();
 
     /**
@@ -60,13 +60,13 @@
 
 private:
     void deInitialise();
-    void initialise( unsigned int inLength, unsigned int decFactor );
-    void doAntiAlias( const double* src, double* dst, unsigned int length );
-    void doAntiAlias( const float* src, double* dst, unsigned int length );
+    void initialise( int inLength, int decFactor );
+    void doAntiAlias( const double* src, double* dst, int length );
+    void doAntiAlias( const float* src, double* dst, int length );
 
-    unsigned int m_inputLength;
-    unsigned int m_outputLength;
-    unsigned int m_decFactor;
+    int m_inputLength;
+    int m_outputLength;
+    int m_decFactor;
 
     double Input;
     double Output ;
@@ -75,7 +75,7 @@
 
     double a[ 9 ];
     double b[ 9 ];
-	
+        
     double* decBuffer;
 };