Skip to content

Commit

Permalink
Merge pull request #67 from schult/warning-fixes
Browse files Browse the repository at this point in the history
Fix member initialization order in noise_gate
  • Loading branch information
djowel authored Sep 2, 2023
2 parents 43d4b9c + f34e927 commit ce4e18b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions q_lib/include/q/fx/noise_gate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ namespace cycfi::q
decibel onset_threshold
, decibel release_threshold
)
: _release_threshold{lin_float(release_threshold)}
, _onset_threshold{lin_float(onset_threshold)}
: _onset_threshold{lin_float(onset_threshold)}
, _release_threshold{lin_float(release_threshold)}
{
}

inline noise_gate::noise_gate(decibel release_threshold)
: _release_threshold{lin_float(release_threshold)}
, _onset_threshold{lin_float(release_threshold + 12_dB)}
: _onset_threshold{lin_float(release_threshold + 12_dB)}
, _release_threshold{lin_float(release_threshold)}
{}

inline bool noise_gate::operator()(float env)
Expand Down

0 comments on commit ce4e18b

Please sign in to comment.