Data Structures |
| struct | DirectSoundDevice |
| struct | BufferMemory |
| struct | IDirectSoundBufferImpl |
| struct | SecondaryBufferImpl |
| struct | PrimaryBufferImpl |
| struct | DirectSoundCaptureDevice |
| struct | IDirectSoundCaptureBufferImpl |
| struct | IDirectSoundFullDuplexImpl |
| struct | IDirectSoundFullDuplex_IUnknown |
| struct | IDirectSoundFullDuplex_IDirectSound |
| struct | IDirectSoundFullDuplex_IDirectSound8 |
| struct | IDirectSoundFullDuplex_IDirectSoundCapture |
| struct | IDirectSound3DListenerImpl |
| struct | IKsBufferPropertySetImpl |
| struct | IKsPrivatePropertySetImpl |
| struct | IDirectSound3DBufferImpl |
Defines |
| #define | DS_TIME_RES 2 /* Resolution of multimedia timer */ |
| #define | DS_TIME_DEL 10 /* Delay of multimedia timer callback, and duration of HEL fragment */ |
| #define | DS_HW_ACCEL_FULL 0 /* default on Windows 98 */ |
| #define | DS_HW_ACCEL_STANDARD 1 /* default on Windows 2000 */ |
| #define | DS_HW_ACCEL_BASIC 2 |
| #define | DS_HW_ACCEL_EMULATION 3 |
| #define | STATE_STOPPED 0 |
| #define | STATE_STARTING 1 |
| #define | STATE_PLAYING 2 |
| #define | STATE_CAPTURING 2 |
| #define | STATE_STOPPING 3 |
| #define | DSOUND_FREQSHIFT (20) |
Typedefs |
| typedef void(* | bitsconvertfunc )(const void *, void *, UINT, UINT, INT, UINT, UINT) |
| typedef void(* | mixfunc )(const void *, void *, unsigned) |
| typedef void(* | normfunc )(const void *, void *, unsigned) |
Functions |
| ULONG | DirectSoundDevice_Release (DirectSoundDevice *device) |
| HRESULT | DirectSoundDevice_Initialize (DirectSoundDevice **ppDevice, LPCGUID lpcGUID) |
| HRESULT | DirectSoundDevice_AddBuffer (DirectSoundDevice *device, IDirectSoundBufferImpl *pDSB) |
| HRESULT | DirectSoundDevice_RemoveBuffer (DirectSoundDevice *device, IDirectSoundBufferImpl *pDSB) |
| HRESULT | DirectSoundDevice_GetCaps (DirectSoundDevice *device, LPDSCAPS lpDSCaps) |
| HRESULT | DirectSoundDevice_CreateSoundBuffer (DirectSoundDevice *device, LPCDSBUFFERDESC dsbd, LPLPDIRECTSOUNDBUFFER ppdsb, LPUNKNOWN lpunk, BOOL from8) |
| HRESULT | DirectSoundDevice_DuplicateSoundBuffer (DirectSoundDevice *device, LPDIRECTSOUNDBUFFER psb, LPLPDIRECTSOUNDBUFFER ppdsb) |
| HRESULT | DirectSoundDevice_SetCooperativeLevel (DirectSoundDevice *devcie, HWND hwnd, DWORD level) |
| HRESULT | DirectSoundDevice_Compact (DirectSoundDevice *device) |
| HRESULT | DirectSoundDevice_GetSpeakerConfig (DirectSoundDevice *device, LPDWORD lpdwSpeakerConfig) |
| HRESULT | DirectSoundDevice_SetSpeakerConfig (DirectSoundDevice *device, DWORD config) |
| HRESULT | IDirectSoundBufferImpl_Create (DirectSoundDevice *device, IDirectSoundBufferImpl **ppdsb, LPCDSBUFFERDESC dsbd) |
| HRESULT | IDirectSoundBufferImpl_Destroy (IDirectSoundBufferImpl *pdsb) |
| HRESULT | IDirectSoundBufferImpl_Duplicate (DirectSoundDevice *device, IDirectSoundBufferImpl **ppdsb, IDirectSoundBufferImpl *pdsb) |
| HRESULT | SecondaryBufferImpl_Create (IDirectSoundBufferImpl *dsb, SecondaryBufferImpl **pdsb) |
| HRESULT | PrimaryBufferImpl_Create (DirectSoundDevice *device, PrimaryBufferImpl **ppdsb, LPCDSBUFFERDESC dsbd) |
| HRESULT | DirectSoundCaptureDevice_Initialize (DirectSoundCaptureDevice **ppDevice, LPCGUID lpcGUID) |
| ULONG | DirectSoundCaptureDevice_Release (DirectSoundCaptureDevice *device) |
| HRESULT | IDirectSoundCaptureBufferImpl_Create (DirectSoundCaptureDevice *device, IDirectSoundCaptureBufferImpl **ppobj, LPCDSCBUFFERDESC lpcDSCBufferDesc) |
| HRESULT | IDirectSound3DListenerImpl_Create (DirectSoundDevice *device, IDirectSound3DListenerImpl **pdsl) |
| HRESULT | IKsBufferPropertySetImpl_Create (IDirectSoundBufferImpl *dsb, IKsBufferPropertySetImpl **piks) |
| HRESULT | IKsBufferPropertySetImpl_Destroy (IKsBufferPropertySetImpl *piks) |
| HRESULT | IKsPrivatePropertySetImpl_Create (REFIID riid, IKsPrivatePropertySetImpl **piks) |
| HRESULT | IDirectSound3DBufferImpl_Create (IDirectSoundBufferImpl *dsb, IDirectSound3DBufferImpl **pds3db) |
| HRESULT | IDirectSound3DBufferImpl_Destroy (IDirectSound3DBufferImpl *pds3db) |
| HRESULT | DSOUND_Create (REFIID riid, LPDIRECTSOUND *ppDS) |
| HRESULT | DSOUND_Create8 (REFIID riid, LPDIRECTSOUND8 *ppDS) |
| DWORD | DSOUND_fraglen (DWORD nSamplesPerSec, DWORD nBlockAlign) |
| HRESULT | DSOUND_PrimaryCreate (DirectSoundDevice *device) |
| HRESULT | DSOUND_PrimaryDestroy (DirectSoundDevice *device) |
| HRESULT | DSOUND_PrimaryPlay (DirectSoundDevice *device) |
| HRESULT | DSOUND_PrimaryStop (DirectSoundDevice *device) |
| HRESULT | DSOUND_PrimaryGetPosition (DirectSoundDevice *device, LPDWORD playpos, LPDWORD writepos) |
| HRESULT | DSOUND_PrimarySetFormat (DirectSoundDevice *device, LPCWAVEFORMATEX wfex, BOOL forced) |
| HRESULT | DSOUND_ReopenDevice (DirectSoundDevice *device, BOOL forcewave) |
| HRESULT | DSOUND_FullDuplexCreate (REFIID riid, LPDIRECTSOUNDFULLDUPLEX *ppDSFD) |
| DWORD | DSOUND_bufpos_to_mixpos (const DirectSoundDevice *device, DWORD pos) |
| void | DSOUND_CheckEvent (const IDirectSoundBufferImpl *dsb, DWORD playpos, int len) |
| void | DSOUND_RecalcVolPan (PDSVOLUMEPAN volpan) |
| void | DSOUND_AmpFactorToVolPan (PDSVOLUMEPAN volpan) |
| void | DSOUND_RecalcFormat (IDirectSoundBufferImpl *dsb) |
| void | DSOUND_MixToTemporary (const IDirectSoundBufferImpl *dsb, DWORD writepos, DWORD mixlen, BOOL inmixer) |
| DWORD | DSOUND_secpos_to_bufpos (const IDirectSoundBufferImpl *dsb, DWORD secpos, DWORD secmixpos, DWORD *overshot) |
| void CALLBACK | DSOUND_timer (UINT timerID, UINT msg, DWORD_PTR dwUser, DWORD_PTR dw1, DWORD_PTR dw2) |
| void CALLBACK | DSOUND_callback (HWAVEOUT hwo, UINT msg, DWORD_PTR dwUser, DWORD_PTR dw1, DWORD_PTR dw2) |
| void | DSOUND_Calc3DBuffer (IDirectSoundBufferImpl *dsb) |
| HRESULT | DSOUND_CaptureCreate (REFIID riid, LPDIRECTSOUNDCAPTURE *ppDSC) |
| HRESULT | DSOUND_CaptureCreate8 (REFIID riid, LPDIRECTSOUNDCAPTURE8 *ppDSC8) |
| HRESULT WINAPI | IDirectSoundCaptureImpl_CreateCaptureBuffer (LPDIRECTSOUNDCAPTURE iface, LPCDSCBUFFERDESC lpcDSCBufferDesc, LPDIRECTSOUNDCAPTUREBUFFER *lplpDSCaptureBuffer, LPUNKNOWN pUnk) |
| HRESULT WINAPI | IDirectSoundCaptureImpl_GetCaps (LPDIRECTSOUNDCAPTURE iface, LPDSCCAPS lpDSCCaps) |
| HRESULT WINAPI | IDirectSoundCaptureImpl_Initialize (LPDIRECTSOUNDCAPTURE iface, LPCGUID lpcGUID) |
| HRESULT | mmErr (UINT err) |
| void | setup_dsound_options (void) |
| const char * | dumpCooperativeLevel (DWORD level) |
Variables |
| int | ds_emuldriver |
| int | ds_hel_buflen |
| int | ds_snd_queue_max |
| int | ds_snd_queue_min |
| int | ds_snd_shadow_maxsize |
| int | ds_hw_accel |
| int | ds_default_sample_rate |
| int | ds_default_bits_per_sample |
| const bitsconvertfunc | convertbpp [4][4] |
| const mixfunc | mixfunctions [4] |
| const normfunc | normfunctions [4] |
| DirectSoundDevice * | DSOUND_renderer [MAXWAVEDRIVERS] |
| GUID | DSOUND_renderer_guids [MAXWAVEDRIVERS] |
| DirectSoundCaptureDevice * | DSOUND_capture [MAXWAVEDRIVERS] |
| GUID | DSOUND_capture_guids [MAXWAVEDRIVERS] |