aboutsummaryrefslogtreecommitdiffstats
path: root/src/GainControl.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-07-07 22:41:07 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-07-07 22:41:07 +0200
commit6634cb1f64518d818306f35154e287b7f997b25e (patch)
tree1fdc940109c9081ff7063aa98131971d77edf4e6 /src/GainControl.h
parent4dc3f5aa76463250197f0a87145d37884509e9af (diff)
downloaddabmod-6634cb1f64518d818306f35154e287b7f997b25e.tar.gz
dabmod-6634cb1f64518d818306f35154e287b7f997b25e.tar.bz2
dabmod-6634cb1f64518d818306f35154e287b7f997b25e.zip
Refactor GainControl for readability
Diffstat (limited to 'src/GainControl.h')
-rw-r--r--src/GainControl.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/GainControl.h b/src/GainControl.h
index 65b94da..00379b8 100644
--- a/src/GainControl.h
+++ b/src/GainControl.h
@@ -2,6 +2,11 @@
Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Her Majesty the Queen in Right of Canada (Communications Research
Center Canada)
+
+ Copyright (C) 2014
+ Matthias P. Braendli, matthias.braendli@mpb.li
+
+ http://opendigitalradio.org
*/
/*
This file is part of ODR-DabMod.
@@ -54,7 +59,6 @@ class GainControl : public ModCodec, public RemoteControllable
GainControl(const GainControl&);
GainControl& operator=(const GainControl&);
-
int process(Buffer* const dataIn, Buffer* dataOut);
const char* name() { return "GainControl"; }
@@ -75,13 +79,13 @@ class GainControl : public ModCodec, public RemoteControllable
__m128 static computeGainFix(const __m128* in, size_t sizeIn);
__m128 static computeGainMax(const __m128* in, size_t sizeIn);
__m128 static computeGainVar(const __m128* in, size_t sizeIn);
-#else // !__SSE__
+#else
float (*computeGain)(const complexf* in, size_t sizeIn);
float static computeGainFix(const complexf* in, size_t sizeIn);
float static computeGainMax(const complexf* in, size_t sizeIn);
float static computeGainVar(const complexf* in, size_t sizeIn);
-#endif // __SSE__
+#endif
};
-
#endif // GAIN_CONTROL_H
+