57 void setEnabled (
bool newValue)
noexcept { enabled = newValue; }
74 template <
typename ProcessContext>
77 const auto& inputBlock = context.getInputBlock();
78 auto& outputBlock = context.getOutputBlock();
81 const auto numSamples = outputBlock.getNumSamples();
83 jassert (inputBlock.getNumSamples() == numSamples);
85 outputBlock.copyFrom (inputBlock);
87 if (! enabled || context.isBypassed)
92 reverb.
processMono (outputBlock.getChannelPointer (0), (
int) numSamples);
97 outputBlock.getChannelPointer (1),
Performs a simple reverb effect on a stream of audio data.
void processMono(float *const samples, const int numSamples) noexcept
Applies the reverb to a single mono channel of audio data.
void reset()
Clears the reverb's buffers.
void processStereo(float *const left, float *const right, const int numSamples) noexcept
Applies the reverb to two stereo channels of audio data.
void setParameters(const Parameters &newParams)
Applies a new set of parameters to the reverb.
const Parameters & getParameters() const noexcept
Returns the reverb's current parameters.
void setSampleRate(const double sampleRate)
Sets the sample rate that will be used for the reverb.
Holds the parameters being used by a Reverb object.
Processor wrapper around juce::Reverb for easy integration into ProcessorChain.
const Parameters & getParameters() const noexcept
Returns the reverb's current parameters.
void process(const ProcessContext &context) noexcept
Applies the reverb to a mono or stereo buffer.
void prepare(const ProcessSpec &spec)
Initialises the reverb.
bool isEnabled() const noexcept
Returns true if the reverb is enabled.
Reverb()=default
Creates an uninitialised Reverb processor.
void setEnabled(bool newValue) noexcept
Enables/disables the reverb.
void setParameters(const Parameters &newParams)
Applies a new set of parameters to the reverb.
void reset() noexcept
Resets the reverb's internal state.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
This structure is passed into a DSP algorithm's prepare() method, and contains information about vari...