#include <float.h>#include "../client/client.h"#include "../client/snd_loc.h"#include "winquake.h"Go to the source code of this file.
Macros | |
| #define | iDirectSoundCreate(a, b, c) pDirectSoundCreate(a,b,c) |
| #define | WAV_BUFFERS 64 |
| #define | WAV_MASK 0x3F |
| #define | WAV_BUFFER_SIZE 0x0400 |
| #define | SECONDARY_BUFFER_SIZE 0x10000 |
Enumerations | |
| enum | sndinitstat { SIS_SUCCESS, SIS_FAILURE, SIS_NOTAVAIL } |
Functions | |
| HRESULT (WINAPI *pDirectSoundCreate)(GUID FAR *lpGUID | |
| sndinitstat | SNDDMA_InitDirect (void) |
| qboolean | SNDDMA_InitWav (void) |
| void | FreeSound (void) |
| static const char * | DSoundError (int error) |
| static qboolean | DS_CreateBuffers (void) |
| static void | DS_DestroyBuffers (void) |
| int | SNDDMA_Init (void) |
| int | SNDDMA_GetDMAPos (void) |
| void | SNDDMA_BeginPainting (void) |
| void | SNDDMA_Submit (void) |
| void | SNDDMA_Shutdown (void) |
| void | S_Activate (qboolean active) |
Variables | |
| LPDIRECTSOUND FAR * | lplpDS |
| LPDIRECTSOUND FAR IUnknown FAR * | pUnkOuter |
| cvar_t * | s_wavonly |
| static qboolean | dsound_init |
| static qboolean | wav_init |
| static qboolean | snd_firsttime = true |
| static qboolean | snd_isdirect |
| static qboolean | snd_iswave |
| static qboolean | primary_format_set |
| static int | snd_buffer_count = 0 |
| static int | sample16 |
| static int | snd_sent |
| static int | snd_completed |
| HANDLE | hData |
| HPSTR | lpData |
| HPSTR | lpData2 |
| HGLOBAL | hWaveHdr |
| LPWAVEHDR | lpWaveHdr |
| HWAVEOUT | hWaveOut |
| WAVEOUTCAPS | wavecaps |
| DWORD | gSndBufSize |
| MMTIME | mmstarttime |
| LPDIRECTSOUND | pDS |
| LPDIRECTSOUNDBUFFER | pDSBuf |
| LPDIRECTSOUNDBUFFER | pDSPBuf |
| HINSTANCE | hInstDS |
| DWORD | locksize |
| #define iDirectSoundCreate | ( | a, | |
| b, | |||
| c | |||
| ) | pDirectSoundCreate(a,b,c) |
| enum sndinitstat |
|
static |
Definition at line 280 of file snd_win.c.
Referenced by DS_CreateBuffers(), SNDDMA_InitDirect(), SNDDMA_InitWav(), SNDDMA_Shutdown(), and SNDDMA_Submit().
| HRESULT | ( | WINAPI * | pDirectSoundCreate | ) |
Referenced by DDRAW_Init(), SNDDMA_BeginPainting(), SNDDMA_InitDirect(), and SNDDMA_InitWav().
| sndinitstat SNDDMA_InitDirect | ( | void | ) |
|
static |
Definition at line 40 of file snd_win.c.
Referenced by FreeSound(), SNDDMA_GetDMAPos(), SNDDMA_Init(), and SNDDMA_InitDirect().
| DWORD gSndBufSize |
Definition at line 66 of file snd_win.c.
Referenced by DS_CreateBuffers(), SNDDMA_BeginPainting(), and SNDDMA_InitWav().
| HANDLE hData |
Definition at line 56 of file snd_win.c.
Referenced by FreeSound(), and SNDDMA_InitWav().
| HINSTANCE hInstDS |
Definition at line 73 of file snd_win.c.
Referenced by FreeSound(), and SNDDMA_InitDirect().
| HGLOBAL hWaveHdr |
Definition at line 59 of file snd_win.c.
Referenced by FreeSound(), and SNDDMA_InitWav().
| HWAVEOUT hWaveOut |
Definition at line 62 of file snd_win.c.
Referenced by FreeSound(), SNDDMA_InitWav(), and SNDDMA_Submit().
| DWORD locksize |
Definition at line 706 of file snd_win.c.
Referenced by SNDDMA_BeginPainting(), and SNDDMA_Submit().
| HPSTR lpData |
Definition at line 57 of file snd_win.c.
Referenced by DS_CreateBuffers(), FreeSound(), and SNDDMA_InitWav().
| LPWAVEHDR lpWaveHdr |
Definition at line 60 of file snd_win.c.
Referenced by FreeSound(), SNDDMA_InitWav(), and SNDDMA_Submit().
| MMTIME mmstarttime |
Definition at line 68 of file snd_win.c.
Referenced by DS_CreateBuffers(), and SNDDMA_GetDMAPos().
| LPDIRECTSOUND pDS |
Definition at line 70 of file snd_win.c.
Referenced by DS_CreateBuffers(), DS_DestroyBuffers(), FreeSound(), S_Activate(), and SNDDMA_InitDirect().
| LPDIRECTSOUNDBUFFER pDSBuf |
Definition at line 71 of file snd_win.c.
Referenced by DS_CreateBuffers(), DS_DestroyBuffers(), FreeSound(), SNDDMA_BeginPainting(), SNDDMA_GetDMAPos(), and SNDDMA_Submit().
| LPDIRECTSOUNDBUFFER pDSPBuf |
Definition at line 71 of file snd_win.c.
Referenced by DS_CreateBuffers(), DS_DestroyBuffers(), and FreeSound().
|
static |
Definition at line 43 of file snd_win.c.
Referenced by DS_CreateBuffers().
| LPDIRECTSOUND FAR IUnknown FAR* pUnkOuter |
Definition at line 28 of file snd_win.c.
Referenced by DDRAW_Init().
| cvar_t* s_wavonly |
Definition at line 38 of file snd_win.c.
Referenced by SNDDMA_Init().
|
static |
Definition at line 47 of file snd_win.c.
Referenced by DS_CreateBuffers(), SNDDMA_GetDMAPos(), SNDDMA_InitWav(), and SNDDMA_Submit().
|
static |
Definition at line 46 of file snd_win.c.
Referenced by SNDDMA_Init().
|
static |
Definition at line 48 of file snd_win.c.
Referenced by SNDDMA_InitWav(), and SNDDMA_Submit().
Definition at line 42 of file snd_win.c.
Referenced by DS_CreateBuffers(), and SNDDMA_Init().
|
static |
Definition at line 42 of file snd_win.c.
Referenced by S_Activate(), and SNDDMA_Init().
|
static |
Definition at line 42 of file snd_win.c.
Referenced by SNDDMA_Init().
|
static |
Definition at line 48 of file snd_win.c.
Referenced by SNDDMA_GetDMAPos(), SNDDMA_InitWav(), and SNDDMA_Submit().
|
static |
Definition at line 41 of file snd_win.c.
Referenced by FreeSound(), SNDDMA_GetDMAPos(), SNDDMA_Init(), SNDDMA_InitWav(), and SNDDMA_Submit().