From 6388aa318e61e48b043f6f2c8eea0978773fc213 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Tue, 2 Aug 2022 09:16:22 +0100 Subject: [PATCH] DSP: make multiplyWithWindowingTable const --- modules/juce_dsp/frequency/juce_Windowing.cpp | 2 +- modules/juce_dsp/frequency/juce_Windowing.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_dsp/frequency/juce_Windowing.cpp b/modules/juce_dsp/frequency/juce_Windowing.cpp index 3a12366ab5..e8f561195a 100644 --- a/modules/juce_dsp/frequency/juce_Windowing.cpp +++ b/modules/juce_dsp/frequency/juce_Windowing.cpp @@ -166,7 +166,7 @@ void WindowingFunction::fillWindowingTables (FloatType* samples, size } template -void WindowingFunction::multiplyWithWindowingTable (FloatType* samples, size_t size) noexcept +void WindowingFunction::multiplyWithWindowingTable (FloatType* samples, size_t size) const noexcept { FloatVectorOperations::multiply (samples, windowTable.getRawDataPointer(), jmin (static_cast (size), windowTable.size())); } diff --git a/modules/juce_dsp/frequency/juce_Windowing.h b/modules/juce_dsp/frequency/juce_Windowing.h index 1b18cf0830..573e89bbf4 100644 --- a/modules/juce_dsp/frequency/juce_Windowing.h +++ b/modules/juce_dsp/frequency/juce_Windowing.h @@ -94,7 +94,7 @@ public: bool normalise = true, FloatType beta = 0) noexcept; /** Multiplies the content of a buffer with the given window. */ - void multiplyWithWindowingTable (FloatType* samples, size_t size) noexcept; + void multiplyWithWindowingTable (FloatType* samples, size_t size) const noexcept; /** Returns the name of a given windowing method. */ static const char* getWindowingMethodName (WindowingMethod) noexcept;