diff --git a/modules/dsp/chowdsp_dsp_data_structures/Other/chowdsp_SmoothedBufferValue.cpp b/modules/dsp/chowdsp_dsp_data_structures/Other/chowdsp_SmoothedBufferValue.cpp index 98594c582..19d97423b 100644 --- a/modules/dsp/chowdsp_dsp_data_structures/Other/chowdsp_SmoothedBufferValue.cpp +++ b/modules/dsp/chowdsp_dsp_data_structures/Other/chowdsp_SmoothedBufferValue.cpp @@ -12,7 +12,7 @@ void SmoothedBufferValue::setParameterHandle (st } template -void SmoothedBufferValue::setParameterHandle ([[maybe_unused]] FloatParameter* handle) +void SmoothedBufferValue::setParameterHandle ([[maybe_unused]] const FloatParameter* handle) { parameterHandle = nullptr; diff --git a/modules/dsp/chowdsp_dsp_data_structures/Other/chowdsp_SmoothedBufferValue.h b/modules/dsp/chowdsp_dsp_data_structures/Other/chowdsp_SmoothedBufferValue.h index b9e6eb306..5a9dbe2ca 100644 --- a/modules/dsp/chowdsp_dsp_data_structures/Other/chowdsp_SmoothedBufferValue.h +++ b/modules/dsp/chowdsp_dsp_data_structures/Other/chowdsp_SmoothedBufferValue.h @@ -44,7 +44,7 @@ class SmoothedBufferValue * * @param handle A parameter handle to use for smoothing */ - void setParameterHandle (FloatParameter* handle); + void setParameterHandle (const FloatParameter* handle); /** Prepare the smoother to process samples with a given sample rate and block size. */ void prepare (double sampleRate, int samplesPerBlock); @@ -102,7 +102,7 @@ class SmoothedBufferValue std::atomic* parameterHandle = nullptr; - FloatParameter* modulatableParameterHandle = nullptr; + const FloatParameter* modulatableParameterHandle = nullptr; double sampleRate = 48000.0; double rampLengthInSeconds = 0.05; diff --git a/modules/dsp/chowdsp_dsp_utils/Processors/chowdsp_BypassProcessor.cpp b/modules/dsp/chowdsp_dsp_utils/Processors/chowdsp_BypassProcessor.cpp index 4b783b28a..1eb1e1328 100644 --- a/modules/dsp/chowdsp_dsp_utils/Processors/chowdsp_BypassProcessor.cpp +++ b/modules/dsp/chowdsp_dsp_utils/Processors/chowdsp_BypassProcessor.cpp @@ -8,7 +8,7 @@ void BypassProcessor -bool BypassProcessor>>::processBlockIn (const BufferView& block, bool onOffParam) +bool BypassProcessor>>::processBlockIn (const BufferView& block, bool onOffParam) { if (! onOffParam && ! prevOnOffParam) { @@ -115,7 +115,7 @@ void BypassProcessor -bool BypassProcessor>>::processBlockIn (const BufferView& block, bool onOffParam) +bool BypassProcessor>>::processBlockIn (const BufferView& block, bool onOffParam) { enum class DelayOp { diff --git a/modules/dsp/chowdsp_dsp_utils/Processors/chowdsp_BypassProcessor.h b/modules/dsp/chowdsp_dsp_utils/Processors/chowdsp_BypassProcessor.h index 778169bf4..c72ed93d5 100644 --- a/modules/dsp/chowdsp_dsp_utils/Processors/chowdsp_BypassProcessor.h +++ b/modules/dsp/chowdsp_dsp_utils/Processors/chowdsp_BypassProcessor.h @@ -47,7 +47,7 @@ class BypassProcessor& buffer, bool onOffParam); + bool processBlockIn (const BufferView& buffer, bool onOffParam); /** * Call this at the end of your processBlock(). @@ -101,7 +101,7 @@ class BypassProcessor& buffer, bool onOffParam); + bool processBlockIn (const BufferView& buffer, bool onOffParam); /** * Call this at the end of your processBlock().