sipxmedialib  Version 3.3
Protected Attributes | List of all members
MpBridgeAlgSimple Class Reference

Brief description. More...

#include <MpBridgeAlgSimple.h>

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

Public Member Functions

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

Protected Attributes

MpBridgeGainmpGainMatrix
 of inputs to outputs gains. More...
 
MpBridgeAccummpMixAccumulator
 have size of mSamplesPerFrame. Used in doMix() only. More...
 
- Protected Attributes inherited from MpBridgeAlgBase
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

Brief description.

Long description here. Even multiline.

Constructor & Destructor Documentation

MpBridgeAlgSimple ( int  maxInputs,
int  maxOutputs,
UtlBoolean  mixSilence,
int  samplesPerFrame 
)

Constructor.

Destructor.

Member Function Documentation

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

Mix together inputs onto outputs according to mpGainMatrix matrix.

Implements MpBridgeAlgBase.

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

Set selected gain to the given value.

Implements MpBridgeAlgBase.

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

Set selected gain row to the given value.

Implements MpBridgeAlgBase.

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

Set selected gain column to the given value.

Implements MpBridgeAlgBase.

Member Data Documentation

MpBridgeGain* mpGainMatrix
protected

of inputs to outputs gains.

mMaxOutputs x mMaxInputs array

MpBridgeAccum* mpMixAccumulator
protected

have size of mSamplesPerFrame. Used in doMix() only.

Accumulator to store sum of all inputs.