sipxmedialib  Version 3.3
Protected Attributes | List of all members
MpBridgeAlgBase Class Referenceabstract

Base class for the Bridge mixing algorithms. More...

#include <MpBridgeAlgBase.h>

Inheritance diagram for MpBridgeAlgBase:
Inheritance graph
[legend]

Public Member Functions

Creators
 MpBridgeAlgBase (int maxInputs, int maxOutputs, UtlBoolean mixSilence)
 Constructor. More...
 
virtual ~MpBridgeAlgBase ()
 Destructor. More...
 
Manipulators
virtual UtlBoolean doMix (MpBufPtr inBufs[], int inBufsSize, MpBufPtr outBufs[], int outBufsSize, int samplesPerFrame)=0
 Mix together inputs onto outputs according to mpGainMatrix matrix. More...
 
virtual void setGainMatrixValue (int column, int row, MpBridgeGain val)=0
 Set selected gain to the given value. More...
 
virtual void setGainMatrixRow (int row, int numValues, const MpBridgeGain val[])=0
 Set selected gain row to the given value. More...
 
virtual void setGainMatrixColumn (int column, int numValues, const MpBridgeGain val[])=0
 Set selected gain column to the given value. More...
 
void saveAmplitudes (MpBufPtr inBufs[], int inBufsSize)
 Save buffers amplitudes to internal array. More...
 
Accessors
int maxInputs () const
 Get maximum number of inputs. More...
 
int maxOutputs () const
 Get maximum number of outputs. More...
 

Protected Attributes

int mMaxInputs
 Number of possible bridge inputs. More...
 
int mMaxOutputs
 Number of possible bridge outputs. More...
 
UtlBoolean mMixSilence
 Should Bridge ignore or mix frames marked as silence? More...
 
MpAudioSamplempPrevAmplitudes
 the previous frame processing interval. More...
 

Detailed Description

Base class for the Bridge mixing algorithms.

Constructor & Destructor Documentation

MpBridgeAlgBase ( int  maxInputs,
int  maxOutputs,
UtlBoolean  mixSilence 
)
inline

Constructor.

virtual ~MpBridgeAlgBase ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual UtlBoolean doMix ( MpBufPtr  inBufs[],
int  inBufsSize,
MpBufPtr  outBufs[],
int  outBufsSize,
int  samplesPerFrame 
)
pure virtual

Mix together inputs onto outputs according to mpGainMatrix matrix.

Implemented in MpBridgeAlgLinear, and MpBridgeAlgSimple.

virtual void setGainMatrixValue ( int  column,
int  row,
MpBridgeGain  val 
)
pure virtual

Set selected gain to the given value.

Implemented in MpBridgeAlgLinear, and MpBridgeAlgSimple.

virtual void setGainMatrixRow ( int  row,
int  numValues,
const MpBridgeGain  val[] 
)
pure virtual

Set selected gain row to the given value.

Implemented in MpBridgeAlgLinear, and MpBridgeAlgSimple.

virtual void setGainMatrixColumn ( int  column,
int  numValues,
const MpBridgeGain  val[] 
)
pure virtual

Set selected gain column to the given value.

Implemented in MpBridgeAlgLinear, and MpBridgeAlgSimple.

void saveAmplitudes ( MpBufPtr  inBufs[],
int  inBufsSize 
)
inline

Save buffers amplitudes to internal array.

int maxInputs ( ) const
inline

Get maximum number of inputs.

int maxOutputs ( ) const
inline

Get maximum number of outputs.

Member Data Documentation

int mMaxInputs
protected

Number of possible bridge inputs.

int mMaxOutputs
protected

Number of possible bridge outputs.

UtlBoolean mMixSilence
protected

Should Bridge ignore or mix frames marked as silence?

MpAudioSample* mpPrevAmplitudes
protected

the previous frame processing interval.

Saved amplitude of the inputs from