Switchboard SDK
|
A simple ducking compressor implementation that adjusts the gain of the processed audio buffers. More...
#include <SimpleDuckingCompressor.hpp>
Public Member Functions | |
SimpleDuckingCompressor () | |
SimpleDuckingCompressor constructor. | |
~SimpleDuckingCompressor () | |
SimpleDuckingCompressor destructor. | |
void | setSampleRate (const uint sampleRate) |
Sets the sample rate. | |
void | setThresholdDb (const float threshold) |
Sets he threshold of the compressor in dB (0 = no ducking). | |
void | process (float *buffer, const uint numberOfFrames) |
Runs the audio compression algorithm on an audio buffer. | |
Public Member Functions inherited from switchboard::DuckingCompressor | |
virtual | ~DuckingCompressor () |
DuckingCompressor destructor. | |
A simple ducking compressor implementation that adjusts the gain of the processed audio buffers.
|
virtual |
Runs the audio compression algorithm on an audio buffer.
buffer | The stereo interleaved audio buffer. |
numberOfFrames | The number of frames in the audio buffer. |
Implements switchboard::DuckingCompressor.
|
virtual |
Sets the sample rate.
sampleRate | The new sampleRate. |
Implements switchboard::DuckingCompressor.
|
virtual |
Sets he threshold of the compressor in dB (0 = no ducking).
threshold | The new threshold value in dB. |
Implements switchboard::DuckingCompressor.