sipxmedialib
Version 3.3
|
#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"
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 |
#define WIN32_LEAN_AND_MEAN |
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 | ( | ) |
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 |