diff --git a/include/sst/filters/BiquadFilter.h b/include/sst/filters/BiquadFilter.h index 08444d1..3c53f8d 100644 --- a/include/sst/filters/BiquadFilter.h +++ b/include/sst/filters/BiquadFilter.h @@ -104,8 +104,9 @@ struct alignas(16) BiquadFilter // void process_block_SSE2(float *data); void process_block(float *dataL, float *dataR); // void process_block_SSE2(float *dataL,float *dataR); - void process_block_to(float *, float *); - void process_block_to(float *dataL, float *dataR, float *dstL, float *dstR); + void process_block_to(const float *const, float *); + void process_block_to(const float *const dataL, const float *const dataR, float *dstL, + float *dstR); // void process_block_to_SSE2(float *dataL,float *dataR, float *dstL,float *dstR); void process_block_slowlag(float *dataL, float *dataR); // void process_block_slowlag_SSE2(float *dataL,float *dataR); @@ -529,8 +530,9 @@ inline void BiquadFilter::process_block(float *data) } template -inline void BiquadFilter::process_block_to(float *__restrict data, - float *__restrict dataout) +inline void +BiquadFilter::process_block_to(const float *__restrict const data, + float *__restrict dataout) { { int k; @@ -630,7 +632,8 @@ inline void BiquadFilter::process_block(float *dataL, fl } template -inline void BiquadFilter::process_block_to(float *dataL, float *dataR, +inline void BiquadFilter::process_block_to(const float *const dataL, + const float *const dataR, float *dstL, float *dstR) { { diff --git a/include/sst/filters/CytomicSVF.h b/include/sst/filters/CytomicSVF.h index 4593734..d4c917d 100644 --- a/include/sst/filters/CytomicSVF.h +++ b/include/sst/filters/CytomicSVF.h @@ -341,7 +341,8 @@ struct CytomicSVF a3 = _mm_add_ps(a3, da3); } - template void processBlock(float *inL, float *inR, float *outL, float *outR) + template + void processBlock(const float *const inL, const float *const inR, float *outL, float *outR) { for (int i = 0; i < blockSize; ++i) { @@ -351,7 +352,7 @@ struct CytomicSVF } } - template void processBlock(float *inL, float *outL) + template void processBlock(const float *const inL, float *outL) { for (int i = 0; i < blockSize; ++i) {