aboutsummaryrefslogtreecommitdiffstats
path: root/src/GainControl.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-09-18 11:35:58 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-09-18 11:35:58 +0200
commitbdbe6b4f8e9ba8bfd703c6b7e9705ec645c64b78 (patch)
treebab90d6ce402d78a4cd796c2596a72bb43f50feb /src/GainControl.h
parent8f1d668ddad1bd2c44932b93853282b4eec9eba4 (diff)
downloaddabmod-bdbe6b4f8e9ba8bfd703c6b7e9705ec645c64b78.tar.gz
dabmod-bdbe6b4f8e9ba8bfd703c6b7e9705ec645c64b78.tar.bz2
dabmod-bdbe6b4f8e9ba8bfd703c6b7e9705ec645c64b78.zip
Refactor variables and GainMode enum
Diffstat (limited to 'src/GainControl.h')
-rw-r--r--src/GainControl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/GainControl.h b/src/GainControl.h
index 3340215..603875b 100644
--- a/src/GainControl.h
+++ b/src/GainControl.h
@@ -45,7 +45,7 @@
typedef std::complex<float> complexf;
-enum GainMode { GAIN_FIX, GAIN_MAX, GAIN_VAR };
+enum class GainMode { GAIN_FIX = 0, GAIN_MAX = 1, GAIN_VAR = 2 };
class GainControl : public ModCodec, public RemoteControllable
{
@@ -71,9 +71,9 @@ class GainControl : public ModCodec, public RemoteControllable
virtual const std::string get_parameter(const std::string& parameter) const;
protected:
- size_t d_frameSize;
- float& d_digGain;
- float d_normalise;
+ size_t m_frameSize;
+ float& m_digGain;
+ float m_normalise;
#ifdef __SSE__
__m128 (*computeGain)(const __m128* in, size_t sizeIn);
__m128 static computeGainFix(const __m128* in, size_t sizeIn);