23#include <juce_audio_basics/juce_audio_basics.h>
48 void process(juce::AudioBuffer<float>)
const;
Protect an AudioBuffer by clamping its samples to a given range and/or replacing NaNs with 0....
Definition BufferProtector.h:33
void setParams(const Params &)
Set the parameters for the buffer protector.
Definition BufferProtector.cpp:27
void process(juce::AudioBuffer< float >) const
Process the given buffer according to the current parameters.
Definition BufferProtector.cpp:32
Parameters for the buffer protector.
Definition BufferProtector.h:37
bool allowNaNs
Replace NaNs with 0.0f in the buffer.
Definition BufferProtector.h:41
float maxDb
Clamp all buffer samples to +/- this value (in dB).
Definition BufferProtector.h:40