Mercurial > hg > svcore
diff data/fft/FFTapi.h @ 1136:e94719f941ba tony-2.0-integration
Return maximum through getNormalizedMagnitudesAt to avoid having to make more than one call
author | Chris Cannam |
---|---|
date | Tue, 20 Oct 2015 12:54:06 +0100 |
parents | db946591a391 |
children |
line wrap: on
line diff
--- a/data/fft/FFTapi.h Wed Oct 14 10:19:48 2015 +0100 +++ b/data/fft/FFTapi.h Tue Oct 20 12:54:06 2015 +0100 @@ -75,7 +75,7 @@ fftf_free(m_output); } - std::vector<std::complex<float> > process(std::vector<float> in) const { + std::vector<std::complex<float> > process(const std::vector<float> &in) const { const int hs = m_size/2; for (int i = 0; i < hs; ++i) { m_input[i] = in[i + hs];