sipxmedialib  Version 3.3
Macros | Functions | Variables
MpMisc.cpp File Reference
#include <mp/MpTypes.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include "os/OsDefs.h"
#include "os/OsMsgQ.h"
#include "os/OsConfigDb.h"
#include "mp/MpCodec.h"
#include "mp/dmaTask.h"
#include "mp/MpBuf.h"
#include "mp/MpAudioBuf.h"
#include "mp/MpRtpBuf.h"
#include "mp/MpUdpBuf.h"
#include "mp/MpBufferMsg.h"
#include "mp/MpMisc.h"
#include "mp/NetInTask.h"
#include "mp/MprFromMic.h"
#include "mp/MprToSpkr.h"
#include "mp/MprDejitter.h"
#include "mp/MpMediaTask.h"
#include "mp/MpCodecFactory.h"
#include "mp/MpStaticCodecInit.h"
#include "os/OsDateTime.h"
Include dependency graph for MpMisc.cpp:

Macros

#define RTL_START(x)
 
#define RTL_STOP
 
#define RTL_WRITE(x)
 
#define setExternalRtlCollector(x)
 
#define MIC_BUFFER_Q_LEN   10
 
#define SPK_BUFFER_Q_LEN   14
 
#define ECHO_BUFFER_Q_LEN   MIC_BUFFER_Q_LEN+SPK_BUFFER_Q_LEN
 
#define RTCP_BUFS   16
 
#define UDP_BUFS   10
 
#define STRINGIFY(s)   #s
 
#define SSTRINGIFY(s)   STRINGIFY(s)
 
#define CODEC_PLUGIN_PATH   "."
 

Functions

intptr_t showMpMisc (int justAddress)
 
int setMaxMic (int v)
 
int setMaxSpkr (int v)
 
int mpSetLatency (int maxMic, int maxSpkr, int minRtp)
 
OsStatus mpStartUp (int sampleRate, int samplesPerFrame, int numAudioBuffers, OsConfigDb *pConfigDb, const size_t numCodecPaths, const UtlString codecPaths[])
 
OsStatus mpShutdown (void)
 
OsStatus mpStartTasks (void)
 
OsStatus mpStopTasks (void)
 
void mpLogBufferStats (const char *label)
 

Variables

struct __MpGlobals MpMisc
 
MpBufPool ** sMpBufPools []
 
int sMpNumBufPools = sizeof(sMpBufPools) / sizeof(MpBufPool**)
 

Macro Definition Documentation

#define RTL_START (   x)
#define RTL_STOP
#define RTL_WRITE (   x)
#define setExternalRtlCollector (   x)
#define MIC_BUFFER_Q_LEN   10
#define SPK_BUFFER_Q_LEN   14
#define ECHO_BUFFER_Q_LEN   MIC_BUFFER_Q_LEN+SPK_BUFFER_Q_LEN
#define RTCP_BUFS   16
#define UDP_BUFS   10
#define STRINGIFY (   s)    #s
#define SSTRINGIFY (   s)    STRINGIFY(s)
#define CODEC_PLUGIN_PATH   "."

Function Documentation

intptr_t showMpMisc ( int  justAddress)
int setMaxMic ( int  v)
int setMaxSpkr ( int  v)
int mpSetLatency ( int  maxMic,
int  maxSpkr,
int  minRtp 
)
OsStatus mpStartUp ( int  sampleRate,
int  samplesPerFrame,
int  numAudioBuffers,
OsConfigDb *  pConfigDb,
const size_t  numCodecPaths,
const UtlString  codecPaths[] 
)
OsStatus mpShutdown ( void  )
OsStatus mpStartTasks ( void  )
OsStatus mpStopTasks ( void  )
void mpLogBufferStats ( const char *  label)

Variable Documentation

struct __MpGlobals MpMisc
MpBufPool** sMpBufPools[]
Initial value:
=
{
}
MpBufPool * UdpPool
Memory pool for raw UDP packets.
Definition: MpMisc.h:77
struct __MpGlobals MpMisc
Definition: MpMisc.cpp:101
MpBufPool * RtpHeadersPool
Definition: MpMisc.h:72
MpBufPool * RawAudioPool
Memory pool for raw audio data buffers.
Definition: MpMisc.h:67
MpBufPool * AudioHeadersPool
Definition: MpMisc.h:68
MpBufPool * UdpHeadersPool
Definition: MpMisc.h:78
MpBufPool * RtcpPool
Memory pool for RTCP data buffers.
Definition: MpMisc.h:71
MpBufPool * RtpPool
Memory pool for RTP data buffers.
Definition: MpMisc.h:70
int sMpNumBufPools = sizeof(sMpBufPools) / sizeof(MpBufPool**)