sipxmedialib  Version 3.3
Macros | Functions | Variables
dmaTaskWnt.cpp File Reference
#include <windows.h>
#include <process.h>
#include <mmsystem.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "mp/dmaTask.h"
#include "mp/MpBuf.h"
#include "mp/MpMisc.h"
#include "mp/MprToSpkr.h"
#include "mp/MpMediaTask.h"
#include "os/OsMsgPool.h"
#include "os/OsIntPtrMsg.h"
Include dependency graph for dmaTaskWnt.cpp:

Macros

#define WIN32_LEAN_AND_MEAN
 

Functions

unsigned int __stdcall SpkrThread (LPVOID Unused)
 
unsigned int __stdcall MicThread (LPVOID Unused)
 
void closeMicDevice ()
 
void closeSpeakerDevices ()
 
int DmaTask_setSpkrQPreload (int qlen)
 
int DmaTask_setMicQPreload (int qlen)
 
void showWaveError (char *syscall, int e, int N, int line)
 
int isFormatSupported (int nChannels, int nSamplesPerSec, int nBitsPerSample)
 
int checkFormat (int nChannels, int nSamplesPerSec, int nBitsPerSample)
 
int showFrameCount (int silent)
 
OsStatus dmaStartup (int samplesPerFrame)
 
void dmaShutdown ()
 
void dmaSignalMicDeviceChange ()
 

Variables

OsMsgPool * gMicStatusPool
 
OsMsgQ * gMicStatusQueue
 
OsMsgPool * gSpeakerStatusPool
 
OsMsgQ * gSpeakerStatusQueue
 
int frameCount = 0
 
int smSpkrQPreload = N_OUT_PRIME
 
int smMicQPreload = N_IN_PRIME
 
HANDLE hMicThread
 
HANDLE hSpkrThread
 
DWORD dwMicThreadID
 
DWORD dwSpkrThreadID
 

Macro Definition Documentation

#define WIN32_LEAN_AND_MEAN

Function Documentation

unsigned int __stdcall SpkrThread ( LPVOID  Unused)
unsigned int __stdcall MicThread ( LPVOID  Unused)
void closeMicDevice ( )
void closeSpeakerDevices ( )
int DmaTask_setSpkrQPreload ( int  qlen)
int DmaTask_setMicQPreload ( int  qlen)
void showWaveError ( char *  syscall,
int  e,
int  N,
int  line 
)
int isFormatSupported ( int  nChannels,
int  nSamplesPerSec,
int  nBitsPerSample 
)
int checkFormat ( int  nChannels,
int  nSamplesPerSec,
int  nBitsPerSample 
)
int showFrameCount ( int  silent)
OsStatus dmaStartup ( int  samplesPerFrame)
void dmaShutdown ( void  )
void dmaSignalMicDeviceChange ( )

Variable Documentation

OsMsgPool* gMicStatusPool
OsMsgQ* gMicStatusQueue
OsMsgPool* gSpeakerStatusPool
OsMsgQ* gSpeakerStatusQueue
int frameCount = 0
int smSpkrQPreload = N_OUT_PRIME
int smMicQPreload = N_IN_PRIME
HANDLE hMicThread
HANDLE hSpkrThread
DWORD dwMicThreadID
DWORD dwSpkrThreadID