18 #include "utl/UtlString.h" 54 virtual OsStatus
init(
int samplerate) = 0;
64 virtual void reset() = 0;
116 #endif // _MpAgcBase_h_ virtual void reset()=0
Reset.
Base class for AGC algorithm.
Definition: MpAgcBase.h:35
int16_t MpAudioSample
Definition: MpTypes.h:44
virtual ~MpAgcBase()
Destructor.
Definition: MpAgcBase.h:61
static void setDefaultAlgorithm(const UtlString &name)
Set algorithm to be used by default.
Definition: MpAgcBase.cpp:60
virtual OsStatus processFrame(const MpAudioSample *data, int count)=0
Calculate amplitude of the frame.
static MpAgcBase * createAgc(const UtlString &name="")
Factory method for VAD algorithms creation.
Definition: MpAgcBase.cpp:31
virtual OsStatus getAmplitude(MpAudioSample &, UtlBoolean &isClipped)=0
Get amplitude of the last processed frame.
static UtlString smDefaultAlgorithm
Name of algorithm to be used by default.
Definition: MpAgcBase.h:107
virtual OsStatus init(int samplerate)=0
Initialize AGC with given sample rate.