1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-12 10:48:42 -04:00

Use namepsace instead empty class

This commit is contained in:
Kacper Michajłow
2020-11-01 00:45:19 +01:00
committed by f4exb
parent fff4b7e465
commit eeb243ea7e
3 changed files with 9 additions and 4 deletions
+6 -1
View File
@@ -18,7 +18,10 @@
#include "firfilter.h"
void FirFilterGenerators::generateLowPassFilter(int nTaps, double sampleRate, double cutoff, std::vector<Real> &taps)
namespace FirFilterGenerators
{
void generateLowPassFilter(int nTaps, double sampleRate, double cutoff, std::vector<Real> &taps)
{
if (!(nTaps & 1))
{
@@ -50,3 +53,5 @@ void FirFilterGenerators::generateLowPassFilter(int nTaps, double sampleRate, do
taps[i] *= 0.42 + 0.5 * cos((2.0 * M_PI * n) / nTaps) + 0.08 * cos((4.0 * M_PI * n) / nTaps);
}
}
}