pa_win_ds.c File Reference

#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <initguid.h>
#include <windows.h>
#include <objbase.h>
#include <dsound.h>
#include "pa_util.h"
#include "pa_allocation.h"
#include "pa_hostapi.h"
#include "pa_stream.h"
#include "pa_cpuload.h"
#include "pa_process.h"
#include "pa_debugprint.h"
#include "pa_win_ds.h"
#include "pa_win_ds_dynlink.h"
#include "pa_win_waveformat.h"
#include "pa_win_wdmks_utils.h"

Data Structures

struct  PaWinDsDeviceInfo
struct  PaWinDsHostApiRepresentation
struct  PaWinDsStream
struct  DSDeviceNameAndGUID
struct  DSDeviceNameAndGUIDVector
struct  DSDeviceNamesAndGUIDs

Defines

#define DIRECTSOUND_VERSION   0x0300
#define DWORD_PTR   unsigned long
#define PRINT(x)   PA_DEBUG(x);
#define ERR_RPT(x)   PRINT(x)
#define DBUG(x)   PRINT(x)
#define DBUGX(x)   PRINT(x)
#define PA_USE_HIGH_LATENCY   (0)
#define PA_WIN_9X_LATENCY   (140)
#define PA_WIN_NT_LATENCY   (280)
#define PA_WIN_WDM_LATENCY   (120)
#define SECONDS_PER_MSEC   (0.001)
#define MSEC_PER_SECOND   (1000)
#define PA_DS_SET_LAST_DIRECTSOUND_ERROR(hr)   PaUtil_SetLastHostErrorInfo( paDirectSound, hr, "DirectSound error" )
#define PA_DEFAULTSAMPLERATESEARCHORDER_COUNT_   (13)
#define DSSPEAKER_7POINT1_SURROUND   0x00000008
#define DSSPEAKER_5POINT1_SURROUND   0x00000009
#define WAVE_FORMAT_48M08   0x00001000
#define WAVE_FORMAT_48S08   0x00002000
#define WAVE_FORMAT_48M16   0x00004000
#define WAVE_FORMAT_48S16   0x00008000
#define WAVE_FORMAT_96M08   0x00010000
#define WAVE_FORMAT_96S08   0x00020000
#define WAVE_FORMAT_96M16   0x00040000
#define WAVE_FORMAT_96S16   0x00080000
#define PA_LATENCY_ENV_NAME   ("PA_MIN_LATENCY_MSEC")
#define PA_ENV_BUF_SIZE   (32)

Typedefs

typedef struct PaWinDsDeviceInfo PaWinDsDeviceInfo
typedef struct PaWinDsStream PaWinDsStream
typedef struct DSDeviceNameAndGUID DSDeviceNameAndGUID
typedef struct
DSDeviceNameAndGUIDVector 
DSDeviceNameAndGUIDVector
typedef struct
DSDeviceNamesAndGUIDs 
DSDeviceNamesAndGUIDs

Functions

PaError PaWinDs_Initialize (PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index)

Variables

GUID IID_IRolandVSCEmulated1 = {0xc2ad1800, 0xb243, 0x11ce, 0xa8, 0xa4, 0x00, 0xaa, 0x00, 0x6c, 0x45, 0x01}
GUID IID_IRolandVSCEmulated2 = {0xc2ad1800, 0xb243, 0x11ce, 0xa8, 0xa4, 0x00, 0xaa, 0x00, 0x6c, 0x45, 0x02}

Detailed Description


Define Documentation

#define DBUG (  )     PRINT(x)
#define DBUGX (  )     PRINT(x)
#define DIRECTSOUND_VERSION   0x0300
#define DSSPEAKER_5POINT1_SURROUND   0x00000009
#define DSSPEAKER_7POINT1_SURROUND   0x00000008
#define DWORD_PTR   unsigned long

Referenced by PaWinMme_Initialize().

#define ERR_RPT (  )     PRINT(x)
#define MSEC_PER_SECOND   (1000)
#define PA_DEFAULTSAMPLERATESEARCHORDER_COUNT_   (13)
#define PA_DS_SET_LAST_DIRECTSOUND_ERROR ( hr   )     PaUtil_SetLastHostErrorInfo( paDirectSound, hr, "DirectSound error" )
#define PA_ENV_BUF_SIZE   (32)
#define PA_LATENCY_ENV_NAME   ("PA_MIN_LATENCY_MSEC")
#define PA_USE_HIGH_LATENCY   (0)
#define PA_WIN_9X_LATENCY   (140)
#define PA_WIN_NT_LATENCY   (280)
#define PA_WIN_WDM_LATENCY   (120)
#define PRINT (  )     PA_DEBUG(x);
#define SECONDS_PER_MSEC   (0.001)
#define WAVE_FORMAT_48M08   0x00001000
#define WAVE_FORMAT_48M16   0x00004000
#define WAVE_FORMAT_48S08   0x00002000
#define WAVE_FORMAT_48S16   0x00008000
#define WAVE_FORMAT_96M08   0x00010000
#define WAVE_FORMAT_96M16   0x00040000
#define WAVE_FORMAT_96S08   0x00020000
#define WAVE_FORMAT_96S16   0x00080000

Typedef Documentation

typedef struct PaWinDsStream PaWinDsStream

Function Documentation

PaError PaWinDs_Initialize ( PaUtilHostApiRepresentation **  hostApi,
PaHostApiIndex  index 
)

Variable Documentation

GUID IID_IRolandVSCEmulated1 = {0xc2ad1800, 0xb243, 0x11ce, 0xa8, 0xa4, 0x00, 0xaa, 0x00, 0x6c, 0x45, 0x01}
GUID IID_IRolandVSCEmulated2 = {0xc2ad1800, 0xb243, 0x11ce, 0xa8, 0xa4, 0x00, 0xaa, 0x00, 0x6c, 0x45, 0x02}
Generated on Fri Jan 27 15:38:14 2012 for PortAudio by  doxygen 1.6.3