5#include <condition_variable>
52 std::condition_variable
cv;
84 virtual std::string
Name()
const override;
float heph_audio_sample_t
Definition HephAudioShared.h:133
class for storing the audio samples in internal format.
Definition AudioBuffer.h:16
base class for the audio effects.
Definition AudioEffect.h:15
normalizes the audio data at the provided RMS.
Definition RmsNormalizer.h:15
RmsNormalizer(heph_audio_sample_t peakAmplitude, double smoothingFactor)
double lastGain
Definition RmsNormalizer.h:33
virtual std::string Name() const override
virtual void ProcessST(const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) override
RmsNormalizer(heph_audio_sample_t targetRms)
virtual void SetTargetRms(double targetRms)
virtual double GetTargetRms() const
size_t threadsCompleted
Definition RmsNormalizer.h:58
double currentRms
Definition RmsNormalizer.h:27
virtual ~RmsNormalizer()=default
virtual void SetSmoothingFactor(double smoothingFactor)
std::condition_variable cv
Definition RmsNormalizer.h:52
virtual double GetSmoothingFactor() const
double targetRms
Definition RmsNormalizer.h:21
double smoothingFactor
Definition RmsNormalizer.h:40
std::mutex mutex
Definition RmsNormalizer.h:46