Mercurial > hg > aimc
diff src/Modules/NAP/ModuleHCL.cc @ 8:fcbf85ce59fb
- Lots of changes to make cpplint happy. It still complains about header guards, but that's pretty much it now.
author | tomwalters |
---|---|
date | Thu, 18 Feb 2010 21:12:41 +0000 |
parents | decdac21cfc2 |
children | bd370910aa05 |
line wrap: on
line diff
--- a/src/Modules/NAP/ModuleHCL.cc Thu Feb 18 20:04:04 2010 +0000 +++ b/src/Modules/NAP/ModuleHCL.cc Thu Feb 18 21:12:41 2010 +0000 @@ -80,7 +80,7 @@ } else { float s = input[c][i]; if (do_log_) { - s *= pow(2.0f,15); + s *= pow(2.0f, 15); if (s < 1.0f) s = 1.0f; s = 20.0f * log10(s); } @@ -88,7 +88,7 @@ } } if (do_lowpass_) { - float b = exp( -1.0f / (input.sample_rate() * time_constant_)); + float b = exp(-1.0f / (input.sample_rate() * time_constant_)); float gain = 1.0f / (1.0f - b); for (int j = 0; j < lowpass_order_; j++) { for (int k = 0; k < output_.buffer_length(); ++k) {