|
sipxmedialib
Version 3.3
|
Base class for AGC algorithm. More...
#include <MpAgcBase.h>

Static Protected Attributes | |
| static UtlString | smDefaultAlgorithm |
| Name of algorithm to be used by default. More... | |
Creators | |
| static MpAgcBase * | createAgc (const UtlString &name="") |
| Factory method for VAD algorithms creation. More... | |
| virtual OsStatus | init (int samplerate)=0 |
| Initialize AGC with given sample rate. More... | |
| virtual | ~MpAgcBase () |
| Destructor. More... | |
| virtual void | reset ()=0 |
| Reset. More... | |
Manipulators | |
| static void | setDefaultAlgorithm (const UtlString &name) |
| Set algorithm to be used by default. More... | |
| virtual OsStatus | processFrame (const MpAudioSample *data, int count)=0 |
| Calculate amplitude of the frame. More... | |
Accessors | |
| virtual OsStatus | getAmplitude (MpAudioSample &, UtlBoolean &isClipped)=0 |
| Get amplitude of the last processed frame. More... | |
Base class for AGC algorithm.
|
inlinevirtual |
Destructor.
|
static |
Factory method for VAD algorithms creation.
| [in] | name | - name of AGC algorithm to use. Use empty string to get default algorithm. |
|
pure virtual |
Initialize AGC with given sample rate.
Should be called before any other class methods.
Implemented in MpAgcSimple.
|
pure virtual |
Reset.
Implemented in MpAgcSimple.
|
pure virtual |
Calculate amplitude of the frame.
Implemented in MpAgcSimple.
|
static |
Set algorithm to be used by default.
Initially default algorithm is defined at compile time. Using this function you can change default algorithm at run-time or switch back to compile-time default.
| [in] | name | - name of algorithm to use by default. Reverts to compile-time default if empty. |
|
pure virtual |
Get amplitude of the last processed frame.
Implemented in MpAgcSimple.
|
staticprotected |
Name of algorithm to be used by default.
1.8.11