*
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
+ * the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* GNU Radio is distributed in the hope that it will be useful,
: _attack_rate(attack_rate), _decay_rate(decay_rate), _reference(reference),
_gain(gain), _max_gain(max_gain) {};
- float decay_rate () const { return _decay_rate; }
float attack_rate () const { return _attack_rate; }
+ float decay_rate () const { return _decay_rate; }
float reference () const { return _reference; }
float gain () const { return _gain; }
float max_gain () const { return _max_gain; }
- void set_decay_rate (float rate) { _decay_rate = rate; }
void set_attack_rate (float rate) { _attack_rate = rate; }
+ void set_decay_rate (float rate) { _decay_rate = rate; }
void set_reference (float reference) { _reference = reference; }
void set_gain (float gain) { _gain = gain; }
void set_max_gain (float max_gain) { _max_gain = max_gain; }
}
protected:
- float _decay_rate; // decay rate for slow changing signals
float _attack_rate; // attack_rate for fast changing signals
+ float _decay_rate; // decay rate for slow changing signals
float _reference; // reference value
float _gain; // current gain
float _max_gain; // maximum gain