diff options
author | Robin Gareus <robin@gareus.org> | 2016-07-07 15:36:13 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-07-07 15:37:11 +0200 |
commit | ef1e20f6a281f4e6a030b92382c2e3dc5809fe3c (patch) | |
tree | 1a5edad1a3d1df29d8ba1d9d571bd024d45ba3bc /libs/ardour/dsp_filter.cc | |
parent | 44a3f042a7a878af45ae893e0361d6a8be315da4 (diff) |
some more lua-bindings
* allow C memory allocation with lua-lifetime
* expose some ChanMapping methods
Diffstat (limited to 'libs/ardour/dsp_filter.cc')
-rw-r--r-- | libs/ardour/dsp_filter.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/dsp_filter.cc b/libs/ardour/dsp_filter.cc index 3b93c9c6f3..d39d03b9b9 100644 --- a/libs/ardour/dsp_filter.cc +++ b/libs/ardour/dsp_filter.cc @@ -390,7 +390,7 @@ FFTSpectrum::execute () float FFTSpectrum::power_at_bin (const uint32_t b, const float norm) const { - assert (b >= 0 && b < _fft_data_size); + assert (b < _fft_data_size); const float a = _fft_power[b] * norm; return a > 1e-12 ? 10.0 * fast_log10 (a) : -INFINITY; } |