- const double a = 156.825 / _session.nominal_frame_rate(); // 25 Hz LPF; see Amp::apply_gain for details
- double lpf = _current_gain;
-
- for (BufferSet::audio_iterator i = bufs.audio_begin(); i != bufs.audio_end(); ++i) {
- Sample* const sp = i->data();
- lpf = _current_gain;
- for (pframes_t nx = 0; nx < nframes; ++nx) {
- sp[nx] *= lpf;
- lpf += a * (gab[nx] - lpf);
- }
+ for (BufferSet::audio_iterator i = bufs.audio_begin(); i != bufs.audio_end(); ++i) {
+ Sample* const sp = i->data();
+ lpf = _current_gain;
+ for (pframes_t nx = 0; nx < nframes; ++nx) {
+ sp[nx] *= lpf;
+ lpf += a * (gab[nx] - lpf);