From 75be9947141e2eee4a13b9ef2767e5f1f62ae0a7 Mon Sep 17 00:00:00 2001 From: xenakios Date: Sun, 3 Dec 2017 23:28:54 +0200 Subject: [PATCH] Constness --- Source/PS_Source/ProcessedStretch.h | 14 +++++++------- Source/PS_Source/StretchSource.cpp | 2 +- Source/PS_Source/StretchSource.h | 2 +- Source/PluginEditor.cpp | 2 +- Source/PluginEditor.h | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Source/PS_Source/ProcessedStretch.h b/Source/PS_Source/ProcessedStretch.h index ea28951..1ed4360 100644 --- a/Source/PS_Source/ProcessedStretch.h +++ b/Source/PS_Source/ProcessedStretch.h @@ -247,7 +247,7 @@ inline void spectrum_spread(int nfreq, double samplerate, }; -inline void spectrum_do_compressor(ProcessParameters& pars, int nfreq, REALTYPE *freq1, REALTYPE *freq2) { +inline void spectrum_do_compressor(const ProcessParameters& pars, int nfreq, REALTYPE *freq1, REALTYPE *freq2) { REALTYPE rms = 0.0; for (int i = 0; i& tmpfreq1, REALTYPE *freq1, REALTYPE *freq2) { spectrum_spread(nfreq, samplerate, tmpfreq1, freq1, tmpfreq1.data(), pars.tonal_vs_noise.bandwidth); @@ -291,7 +291,7 @@ inline void spectrum_do_tonal_vs_noise(ProcessParameters& pars, int nfreq, doubl }; -inline void spectrum_do_harmonics(ProcessParameters& pars, std::vector& tmpfreq1, int nfreq, double samplerate, REALTYPE *freq1, REALTYPE *freq2) { +inline void spectrum_do_harmonics(const ProcessParameters& pars, std::vector& tmpfreq1, int nfreq, double samplerate, REALTYPE *freq1, REALTYPE *freq2) { REALTYPE freq = pars.harmonics.freq; REALTYPE bandwidth = pars.harmonics.bandwidth; int nharmonics = pars.harmonics.nharmonics; @@ -347,7 +347,7 @@ inline void spectrum_zero(int nfreq,REALTYPE *freq1) { for (int i = 0; i& sumfreq, std::vector& tmpfreq1, REALTYPE *freq1, REALTYPE *freq2) { @@ -408,7 +408,7 @@ inline void spectrum_do_octave(ProcessParameters& pars, int nfreq, double sample for (int i = 0; i