sipxmedialib  Version 3.3
Private Attributes | List of all members
MprDelay::MprDelayFifo Class Reference

Fifo for Delay resource. More...

Collaboration diagram for MprDelay::MprDelayFifo:
Collaboration graph
[legend]

Private Attributes

MpAudioBufPtrmBuff
 
int mBuffSize
 
int mEndPosition
 
int mStartPosition
 
int mNumActiveFrames
 

Creators

 MprDelayFifo (int capacity)
 Constructor. More...
 
 ~MprDelayFifo ()
 Destructor. More...
 

Manipulators

void reset ()
 Reset FIFO. More...
 
void pushData (MpAudioBufPtr &databuff)
 Push audio buffer to FIFO. More...
 
void popData (MpAudioBufPtr &databuff)
 Pop audio buffer from FIFO. More...
 

Accessors

int getFifoLength () const
 Get number of buffers in queue. More...
 

Inquiry

UtlBoolean isQuiescent () const
 Does FIFO contain only silent frames? More...
 
UtlBoolean isEmpty () const
 Is FIFIO empty. More...
 

Detailed Description

Fifo for Delay resource.

Constructor & Destructor Documentation

MprDelayFifo ( int  capacity)

Constructor.

Destructor.

Member Function Documentation

void reset ( )

Reset FIFO.

void pushData ( MpAudioBufPtr databuff)

Push audio buffer to FIFO.

void popData ( MpAudioBufPtr databuff)

Pop audio buffer from FIFO.

User must ensure that queue is not empty by himself. Pop from an empty queue will corrupt its internal state.

int getFifoLength ( ) const

Get number of buffers in queue.

UtlBoolean isQuiescent ( ) const

Does FIFO contain only silent frames?

UtlBoolean isEmpty ( ) const

Is FIFIO empty.

Member Data Documentation

MpAudioBufPtr* mBuff
private
int mBuffSize
private
int mEndPosition
private
int mStartPosition
private
int mNumActiveFrames
private