sipxmedialib  Version 3.3
Classes | Macros | Typedefs
MpBridgeAlgBase.h File Reference
#include "mp/MpTypes.h"
#include "mp/MpAudioBuf.h"
#include "mp/MpDspUtils.h"
Include dependency graph for MpBridgeAlgBase.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Macros

#define MP_BRIDGE_INT_LENGTH   INT16_C(5)
 
#define MP_BRIDGE_FRAC_LENGTH   INT16_C(10)
 
#define MPF_BRIDGE_FLOAT(num)   ((MpBridgeGain)MPF_FLOAT((num), MP_BRIDGE_INT_LENGTH, MP_BRIDGE_FRAC_LENGTH))
 
#define MPF_BRIDGE_MAX   ((MpBridgeGain)MPF_MAX(MP_BRIDGE_INT_LENGTH, MP_BRIDGE_FRAC_LENGTH))
 
#define MPF_BRIDGE_STEP   ((MpBridgeGain)MPF_STEP(MP_BRIDGE_INT_LENGTH, MP_BRIDGE_FRAC_LENGTH))
 
#define MP_BRIDGE_GAIN_UNDEFINED   INT16_MAX
 
#define MP_BRIDGE_GAIN_MAX   MPF_BRIDGE_MAX
 
#define MP_BRIDGE_GAIN_MIN   MPF_BRIDGE_FLOAT(0.0f)
 
#define MP_BRIDGE_GAIN_STEP   MPF_BRIDGE_STEP
 
#define MP_BRIDGE_GAIN_MUTED   MP_BRIDGE_GAIN_MIN
 
#define MP_BRIDGE_GAIN_PASSTHROUGH   MPF_BRIDGE_FLOAT(1.0f)
 
#define MAX_AMPLITUDE_ROUND   (1<<(MP_AUDIO_SAMPLE_SIZE-1))
 

Typedefs

typedef float MpBridgeAccum
 
typedef float MpBridgeGain
 

Macro Definition Documentation

#define MP_BRIDGE_INT_LENGTH   INT16_C(5)
#define MP_BRIDGE_FRAC_LENGTH   INT16_C(10)
#define MPF_BRIDGE_FLOAT (   num)    ((MpBridgeGain)MPF_FLOAT((num), MP_BRIDGE_INT_LENGTH, MP_BRIDGE_FRAC_LENGTH))
#define MP_BRIDGE_GAIN_UNDEFINED   INT16_MAX
#define MP_BRIDGE_GAIN_MAX   MPF_BRIDGE_MAX
#define MP_BRIDGE_GAIN_MIN   MPF_BRIDGE_FLOAT(0.0f)
#define MP_BRIDGE_GAIN_STEP   MPF_BRIDGE_STEP
#define MP_BRIDGE_GAIN_MUTED   MP_BRIDGE_GAIN_MIN
#define MP_BRIDGE_GAIN_PASSTHROUGH   MPF_BRIDGE_FLOAT(1.0f)
#define MAX_AMPLITUDE_ROUND   (1<<(MP_AUDIO_SAMPLE_SIZE-1))

Typedef Documentation

typedef float MpBridgeAccum
typedef float MpBridgeGain