13 #ifndef _MpAgcSimple_h_ 14 #define _MpAgcSimple_h_ 18 #include "utl/UtlString.h" 41 const static UtlString
name;
51 OsStatus
init(
int samplerate);
98 #endif // _MpAgcSimple_h_ UtlBoolean mWasClipping
Definition: MpAgcSimple.h:93
MpAgcSimple()
Constructor.
Definition: MpAgcSimple.cpp:31
float mAdaptation
Definition: MpAgcSimple.h:91
Base class for AGC algorithm.
Definition: MpAgcBase.h:35
OsStatus getAmplitude(MpAudioSample &, UtlBoolean &isClipped)
Get amplitude of the last processed frame.
Definition: MpAgcSimple.cpp:73
int16_t MpAudioSample
Definition: MpTypes.h:44
MpAudioSample mAmplitude
Definition: MpAgcSimple.h:92
~MpAgcSimple()
Destructor.
Definition: MpAgcSimple.cpp:44
OsStatus processFrame(const MpAudioSample *data, int count)
Calculate amplitude of the frame.
Definition: MpAgcSimple.cpp:58
Simple class for AGC algorithm.
Definition: MpAgcSimple.h:36
void reset()
Reset.
Definition: MpAgcSimple.cpp:49
OsStatus init(int samplerate)
Initialize AGC with given sample rate.
Definition: MpAgcSimple.cpp:39
static const UtlString name
Name of this AGC algorithm.
Definition: MpAgcSimple.h:41