#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) |
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} |
#define DBUG | ( | x | ) | PRINT(x) |
#define DBUGX | ( | x | ) | 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 | ( | x | ) | 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 | ( | x | ) | PA_DEBUG(x); |
Referenced by MMCSS_activate(), MMCSS_deactivate(), PaWasapi_Initialize(), ProcThreadEvent(), and ProcThreadPoll().
#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 |
PaError PaWinDs_Initialize | ( | PaUtilHostApiRepresentation ** | hostApi, | |
PaHostApiIndex | index | |||
) |
References PaWinDsHostApiRepresentation::allocations, PaWinDsHostApiRepresentation::blockingStreamInterface, PaWinDsHostApiRepresentation::callbackStreamInterface, PaWinDsHostApiRepresentation::comWasInitialized, DSDeviceNameAndGUIDVector::count, DSDeviceNameAndGUIDVector::enumerationError, GetStreamReadAvailable(), GetStreamWriteAvailable(), PaDeviceInfo::hostApi, PaUtilHostApiRepresentation::info, PaWinDsDeviceInfo::inheritedDeviceInfo, PaWinDsHostApiRepresentation::inheritedHostApiRep, DSDeviceNamesAndGUIDs::inputNamesAndGUIDs, DSDeviceNameAndGUIDVector::items, DSDeviceNameAndGUID::lpGUID, DSDeviceNameAndGUID::name, PaDeviceInfo::name, DSDeviceNamesAndGUIDs::outputNamesAndGUIDs, paDirectSound, paInsufficientMemory, paNoDevice, paNoError, paUnanticipatedHostError, PaUtil_AllocateMemory(), PaUtil_CreateAllocationGroup(), PaUtil_DestroyAllocationGroup(), PaUtil_DummyGetCpuLoad(), PaUtil_DummyGetReadAvailable(), PaUtil_DummyGetWriteAvailable(), PaUtil_DummyRead(), PaUtil_DummyWrite(), PaUtil_FreeAllAllocations(), PaUtil_FreeMemory(), PaUtil_GroupAllocateMemory(), PaUtil_InitializeStreamInterface(), PaWinDs_InitializeDSoundEntryPoints(), paWinDsDSoundEntryPoints, DSDeviceNameAndGUID::pnpInterface, ReadStream(), PaDeviceInfo::structVersion, PaHostApiInfo::structVersion, DSDeviceNamesAndGUIDs::winDsHostApi, and WriteStream().
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} |