|
sipxmedialib
Version 3.3
|
Simple class for AGC algorithm. More...
#include <MpAgcSimple.h>


Static Public Attributes | |
| static const UtlString | name = "AGC Simple" |
| Name of this AGC algorithm. More... | |
Private Attributes | |
| float | mAdaptation |
| MpAudioSample | mAmplitude |
| UtlBoolean | mWasClipping |
Creators | |
| MpAgcSimple () | |
| Constructor. More... | |
| OsStatus | init (int samplerate) |
| Initialize AGC with given sample rate. More... | |
| ~MpAgcSimple () | |
| Destructor. More... | |
| void | reset () |
| Reset. More... | |
Manipulators | |
| OsStatus | processFrame (const MpAudioSample *data, int count) |
| Calculate amplitude of the frame. More... | |
Accessors | |
| OsStatus | getAmplitude (MpAudioSample &, UtlBoolean &isClipped) |
| Get amplitude of the last processed frame. More... | |
Additional Inherited Members | |
Public Member Functions inherited from MpAgcBase | |
| virtual | ~MpAgcBase () |
| Destructor. More... | |
Static Public Member Functions inherited from MpAgcBase | |
| static MpAgcBase * | createAgc (const UtlString &name="") |
| Factory method for VAD algorithms creation. More... | |
| static void | setDefaultAlgorithm (const UtlString &name) |
| Set algorithm to be used by default. More... | |
Static Protected Attributes inherited from MpAgcBase | |
| static UtlString | smDefaultAlgorithm |
| Name of algorithm to be used by default. More... | |
Simple class for AGC algorithm.
| MpAgcSimple | ( | ) |
Constructor.
| ~MpAgcSimple | ( | ) |
Destructor.
|
virtual |
Initialize AGC with given sample rate.
Should be called before any other class methods.
Implements MpAgcBase.
|
virtual |
Reset.
Implements MpAgcBase.
|
virtual |
Calculate amplitude of the frame.
Implements MpAgcBase.
|
virtual |
Get amplitude of the last processed frame.
Implements MpAgcBase.
|
static |
Name of this AGC algorithm.
|
private |
|
private |
|
private |
1.8.11