sipxmedialib  Version 3.3
Static Public Attributes | Private Attributes | List of all members
MpAgcSimple Class Reference

Simple class for AGC algorithm. More...

#include <MpAgcSimple.h>

Inheritance diagram for MpAgcSimple:
Inheritance graph
[legend]
Collaboration diagram for MpAgcSimple:
Collaboration graph
[legend]

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 &amp, 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 MpAgcBasecreateAgc (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...
 

Detailed Description

Simple class for AGC algorithm.

Constructor & Destructor Documentation

Constructor.

Destructor.

Member Function Documentation

OsStatus init ( int  samplerate)
virtual

Initialize AGC with given sample rate.

Should be called before any other class methods.

Implements MpAgcBase.

void reset ( )
virtual

Reset.

Implements MpAgcBase.

OsStatus processFrame ( const MpAudioSample data,
int  count 
)
virtual

Calculate amplitude of the frame.

Implements MpAgcBase.

OsStatus getAmplitude ( MpAudioSample amp,
UtlBoolean &  isClipped 
)
virtual

Get amplitude of the last processed frame.

Implements MpAgcBase.

Member Data Documentation

const UtlString name = "AGC Simple"
static

Name of this AGC algorithm.

float mAdaptation
private
MpAudioSample mAmplitude
private
UtlBoolean mWasClipping
private