From bdbe6b4f8e9ba8bfd703c6b7e9705ec645c64b78 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 18 Sep 2015 11:35:58 +0200 Subject: Refactor variables and GainMode enum --- src/GainControl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/GainControl.h') 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 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); -- cgit v1.2.3