Switchboard SDK
|
Abstract base class for compressors that can be used for audio ducking. More...
#include <DuckingCompressor.hpp>
Public Member Functions | |
virtual | ~DuckingCompressor () |
DuckingCompressor destructor. | |
virtual void | setSampleRate (const uint sampleRate)=0 |
Sets the sample rate. | |
virtual void | setThresholdDb (const float threshold)=0 |
Sets he threshold of the compressor in dB (0 = no ducking). | |
virtual void | process (float *buffer, const uint numberOfFrames)=0 |
Runs the audio compression algorithm on an audio buffer. | |
Abstract base class for compressors that can be used for audio ducking.
|
pure 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. |
Implemented in switchboard::SimpleDuckingCompressor.
|
pure virtual |
Sets the sample rate.
sampleRate | The new sampleRate. |
Implemented in switchboard::SimpleDuckingCompressor.
|
pure virtual |
Sets he threshold of the compressor in dB (0 = no ducking).
threshold | The new threshold value in dB. |
Implemented in switchboard::SimpleDuckingCompressor.