From 6634cb1f64518d818306f35154e287b7f997b25e Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 7 Jul 2014 22:41:07 +0200 Subject: Refactor GainControl for readability --- src/GainControl.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/GainControl.h') 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 + -- cgit v1.2.3