15 #ifndef _INCLUDED_DMATASK_H 16 #define _INCLUDED_DMATASK_H 21 #include "os/OsTask.h" 22 #include "os/OsBSem.h" 30 # define N_BUFFERS 100 31 # define USER_BUFFER_MASK 0xff // if N_BUFFERS is greater than 256, must change USER_BUFFER_MASK! 33 # define N_IN_BUFFERS N_BUFFERS 34 # define N_OUT_BUFFERS N_BUFFERS 45 # define N_IN_PRIME 32 // must not be more than N_IN_BUFFERS: 46 # define N_OUT_PRIME 16 // must not be more than N_OUT_BUFFERS: 50 # define SAMPLES_PER_SEC 8000 51 # define MIN_SAMPLE_RATE 100 52 # define BITS_PER_SAMPLE 16 111 virtual int run(
void* pArg);
int mFrameSamples
Definition: dmaTask.h:199
static bool smIsMuted
Definition: dmaTask.h:189
int showFrameCount(int silent)
Definition: dmaTaskWnt.cpp:187
static bool mbInputDeviceChanged
Definition: dmaTask.h:206
void dmaSignalMicDeviceChange()
Definition: dmaTaskWnt.cpp:314
static void setCallDevice(const char *szDevice)
Definition: dmaTask.h:157
MpDmaMicChoice MpDma_getMicMode(void)
static DmaTask * getDmaTask(int samplesPerFrame=80)
unsigned short gTableSize
Definition: MprEchoSuppress.cpp:91
static UtlString mCallDeviceName
Definition: dmaTask.h:203
static void setMuteListener(MuteListenerFuncPtr pFunc)
Definition: dmaTask.h:131
static bool smIsRingerEnabled
Definition: dmaTask.h:188
static bool mbOutputDevicesChanged
Definition: dmaTask.h:205
static void setRingDevice(const char *szDevice)
Definition: dmaTask.h:150
void(* MuteListenerFuncPtr)(bool)
Definition: dmaTask.h:63
MSG_Q_ID mDoneQ
Definition: dmaTask.h:200
DmaTask(MSG_Q_ID doneQ=NULL, int samplesPerFrame=0, int prio=DEF_DMA_TASK_PRIORITY, int options=DEF_DMA_TASK_OPTIONS, int stack=DEF_DMA_TASK_STACKSIZE)
DmaTask & operator=(const DmaTask &rhs)
static const int DEF_DMA_TASK_STACKSIZE
Definition: dmaTask.h:197
static UtlString & getCallDevice()
Definition: dmaTask.h:171
static const int DEF_DMA_TASK_PRIORITY
Definition: dmaTask.h:195
static const int DEF_DMA_TASK_OPTIONS
Definition: dmaTask.h:196
static UtlString & getRingDevice()
Definition: dmaTask.h:170
int DmaTask_setSpkrQPreload(int qlen)
Definition: dmaTaskWnt.cpp:71
void dmaShutdown(void)
Definition: dmaTaskWnt.cpp:285
static bool isOutputDeviceChanged()
Definition: dmaTask.h:173
static UtlString mMicDeviceName
Definition: dmaTask.h:204
void * MSG_Q_ID
Definition: MpTypes.h:40
int DmaTask_setMicQPreload(int qlen)
Definition: dmaTaskWnt.cpp:81
virtual int run(void *pArg)
OsStatus MpDma_selectMic(MpDmaMicChoice choice)
static UtlString & getMicDevice()
Definition: dmaTask.h:172
unsigned short shpAttenTable[]
Definition: MprEchoSuppress.cpp:92
static UtlString mRingDeviceName
Definition: dmaTask.h:202
static OsBSem sLock
Definition: dmaTask.h:211
static DmaTask * spInstance
Definition: dmaTask.h:209
static void clearOutputDeviceChanged()
Definition: dmaTask.h:174
static void clearInputDeviceChanged()
Definition: dmaTask.h:176
static MuteListenerFuncPtr smpMuteListener
Definition: dmaTask.h:190
static bool setRingerEnabled(bool enabled)
Definition: dmaTask.h:120
static bool isInputDeviceChanged()
Definition: dmaTask.h:175
static void setInputDevice(const char *szDevice)
Definition: dmaTask.h:164
MpDmaMicChoice
Definition: dmaTask.h:77
static bool isMuteEnabled(void)
Definition: dmaTask.h:147
static bool isRingerEnabled(void)
Definition: dmaTask.h:128
static bool setMuteEnabled(bool enabled)
Definition: dmaTask.h:135
OsStatus dmaStartup(int samplesPerFrame)
Definition: dmaTaskWnt.cpp:198