1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

DSP: make multiplyWithWindowingTable const

This commit is contained in:
Tom Poole 2022-08-02 09:16:22 +01:00
parent dac8ce6e9f
commit 6388aa318e
2 changed files with 2 additions and 2 deletions

View file

@ -166,7 +166,7 @@ void WindowingFunction<FloatType>::fillWindowingTables (FloatType* samples, size
}
template <typename FloatType>
void WindowingFunction<FloatType>::multiplyWithWindowingTable (FloatType* samples, size_t size) noexcept
void WindowingFunction<FloatType>::multiplyWithWindowingTable (FloatType* samples, size_t size) const noexcept
{
FloatVectorOperations::multiply (samples, windowTable.getRawDataPointer(), jmin (static_cast<int> (size), windowTable.size()));
}

View file

@ -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;