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

Estimation algorithm for simple fixed length jitter buffer. More...

#include <MpJbeFixed.h>

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

Public Member Functions

Creators
 MpJbeFixed ()
 Constructor. More...
 
virtual ~MpJbeFixed ()
 Destructor. More...
 
virtual OsStatus init (int samplerate)
 Initialize algorithm with given samplerate. More...
 
Manipulators
virtual OsStatus update (const RtpHeader *rtp, uint32_t cur_rtp_timestamp, uint32_t cur_playback_time, int32_t *hint)
 Update estimation with new received packet. More...
 
virtual void reset ()
 Prepare to process other unrelated audio stream. More...
 
- Public Member Functions inherited from MpJitterBufferEstimation
virtual ~MpJitterBufferEstimation ()
 Destructor. More...
 

Static Public Attributes

static const char * name = "Fixed length JB"
 

Private Attributes

int mSamplerate
 
int mJbLength
 
int32_t mDelay
 

Additional Inherited Members

- Static Public Member Functions inherited from MpJitterBufferEstimation
static MpJitterBufferEstimationcreateJbe (const UtlString &algName="")
 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 MpJitterBufferEstimation
static UtlString smDefaultAlgorithm
 Name of algorithm to be used by default. More...
 

Detailed Description

Estimation algorithm for simple fixed length jitter buffer.

Constructor & Destructor Documentation

Constructor.

~MpJbeFixed ( )
virtual

Destructor.

Member Function Documentation

OsStatus init ( int  samplerate)
virtual

Initialize algorithm with given samplerate.

Implements MpJitterBufferEstimation.

OsStatus update ( const RtpHeader rtp,
uint32_t  cur_rtp_timestamp,
uint32_t  cur_playback_time,
int32_t *  hint 
)
virtual

Update estimation with new received packet.

Implements MpJitterBufferEstimation.

void reset ( )
virtual

Prepare to process other unrelated audio stream.

Only initialized algorithm can be reseted. Calling reset() should bring algorithm to the original state as it was right after init(). So init() should NOT be called after reset().

Implements MpJitterBufferEstimation.

Member Data Documentation

const char * name = "Fixed length JB"
static

Name of this JBE algorithm for use in MpJitterBufferEstimation::createJbe().

int mSamplerate
private
int mJbLength
private
int32_t mDelay
private