22#ifndef _DSOUND_PRIVATE_H_
23#define _DSOUND_PRIVATE_H_
31#define WIN32_NO_STATUS
33#define COM_NO_WINDOWS_H
36#define NONAMELESSSTRUCT
37#define NONAMELESSUNION
45#include <audioclient.h>
62#define DS_HW_ACCEL_FULL 0
63#define DS_HW_ACCEL_STANDARD 1
64#define DS_HW_ACCEL_BASIC 2
65#define DS_HW_ACCEL_EMULATION 3
281 const IDirectSoundCaptureBuffer8Vtbl *
lpVtbl;
303 const IDirectSound3DListenerVtbl *
lpVtbl;
399#define STATE_STOPPED 0
400#define STATE_STARTING 1
401#define STATE_PLAYING 2
402#define STATE_CAPTURING 2
403#define STATE_STOPPING 3
405#define DSOUND_FREQSHIFT (20)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
DirectSoundCaptureDevice * DSOUND_capture[MAXWAVEDRIVERS]
struct IDsCaptureDriver * PIDSCDRIVER
struct IDsDriver * PIDSDRIVER
struct IDsDriverBuffer * PIDSDRIVERBUFFER
struct IDsDriverNotify * PIDSDRIVERNOTIFY
struct IDsCaptureDriverBuffer * PIDSCDRIVERBUFFER
struct IDirectSoundCapture * LPDIRECTSOUNDCAPTURE
struct IDirectSoundBuffer * LPDIRECTSOUNDBUFFER
struct IDirectSoundFullDuplex * LPDIRECTSOUNDFULLDUPLEX
struct IDirectSoundBuffer ** LPLPDIRECTSOUNDBUFFER
struct IDirectSound * LPDIRECTSOUND
struct IDirectSound8 * LPDIRECTSOUND8
struct IDirectSoundCapture * LPDIRECTSOUNDCAPTURE8
const mixfunc mixfunctions[4]
const normfunc normfunctions[4]
const bitsconvertfunc convertbpp[5][4]
GUID DSOUND_renderer_guids[MAXWAVEDRIVERS]
GUID DSOUND_capture_guids[MAXWAVEDRIVERS]
int ds_snd_shadow_maxsize
int ds_default_sample_rate
int ds_default_bits_per_sample
DirectSoundDevice * DSOUND_renderer[MAXWAVEDRIVERS]
int ds_emuldriver DECLSPEC_HIDDEN
HRESULT DirectSoundDevice_GetCaps(DirectSoundDevice *device, LPDSCAPS lpDSCaps) DECLSPEC_HIDDEN
HRESULT IDirectSoundBufferImpl_Destroy(IDirectSoundBufferImpl *pdsb) DECLSPEC_HIDDEN
void secondarybuffer_destroy(IDirectSoundBufferImpl *This) DECLSPEC_HIDDEN
HRESULT IKsPrivatePropertySetImpl_Create(REFIID riid, IKsPropertySet **piks) DECLSPEC_HIDDEN
void setup_dsound_options(void) DECLSPEC_HIDDEN
HRESULT DSOUND_ReopenDevice(DirectSoundDevice *device, BOOL forcewave) DECLSPEC_HIDDEN
HRESULT DSOUND_PrimaryStop(DirectSoundDevice *device) DECLSPEC_HIDDEN
void(* bitsconvertfunc)(const void *, void *, UINT, UINT, INT, UINT, UINT)
DWORD DSOUND_secpos_to_bufpos(const IDirectSoundBufferImpl *dsb, DWORD secpos, DWORD secmixpos, DWORD *overshot) DECLSPEC_HIDDEN
HRESULT DirectSoundDevice_Compact(DirectSoundDevice *device) DECLSPEC_HIDDEN
HRESULT IDirectSound3DBufferImpl_Create(IDirectSoundBufferImpl *dsb, IDirectSound3DBufferImpl **pds3db) DECLSPEC_HIDDEN
void DSOUND_Calc3DBuffer(IDirectSoundBufferImpl *dsb) DECLSPEC_HIDDEN
HRESULT DSOUND_PrimaryPlay(DirectSoundDevice *device) DECLSPEC_HIDDEN
HRESULT DSOUND_Create8(REFIID riid, LPDIRECTSOUND8 *ppDS) DECLSPEC_HIDDEN
HRESULT DSOUND_Create(REFIID riid, LPDIRECTSOUND *ppDS) DECLSPEC_HIDDEN
HRESULT DirectSoundDevice_GetSpeakerConfig(DirectSoundDevice *device, LPDWORD lpdwSpeakerConfig) DECLSPEC_HIDDEN
HRESULT DirectSoundDevice_AddBuffer(DirectSoundDevice *device, IDirectSoundBufferImpl *pDSB) DECLSPEC_HIDDEN
HRESULT primarybuffer_SetFormat(DirectSoundDevice *device, LPCWAVEFORMATEX wfex) DECLSPEC_HIDDEN
void CALLBACK DSOUND_timer(UINT timerID, UINT msg, DWORD_PTR dwUser, DWORD_PTR dw1, DWORD_PTR dw2) DECLSPEC_HIDDEN
HRESULT IDirectSoundBufferImpl_Duplicate(DirectSoundDevice *device, IDirectSoundBufferImpl **ppdsb, IDirectSoundBufferImpl *pdsb) DECLSPEC_HIDDEN
DWORD DSOUND_bufpos_to_mixpos(const DirectSoundDevice *device, DWORD pos) DECLSPEC_HIDDEN
ULONG DirectSoundDevice_Release(DirectSoundDevice *device) DECLSPEC_HIDDEN
void(* normfunc)(const void *, void *, unsigned)
HRESULT DirectSoundDevice_DuplicateSoundBuffer(DirectSoundDevice *device, LPDIRECTSOUNDBUFFER psb, LPLPDIRECTSOUNDBUFFER ppdsb) DECLSPEC_HIDDEN
void DSOUND_AmpFactorToVolPan(PDSVOLUMEPAN volpan) DECLSPEC_HIDDEN
HRESULT DSOUND_PrimaryGetPosition(DirectSoundDevice *device, LPDWORD playpos, LPDWORD writepos) DECLSPEC_HIDDEN
HRESULT DirectSoundDevice_SetCooperativeLevel(DirectSoundDevice *devcie, HWND hwnd, DWORD level) DECLSPEC_HIDDEN
HRESULT DSOUND_CaptureCreate8(REFIID riid, LPDIRECTSOUNDCAPTURE8 *ppDSC8) DECLSPEC_HIDDEN
HRESULT IKsBufferPropertySetImpl_Create(IDirectSoundBufferImpl *dsb, IKsBufferPropertySetImpl **piks) DECLSPEC_HIDDEN
void CALLBACK DSOUND_callback(HWAVEOUT hwo, UINT msg, DWORD_PTR dwUser, DWORD_PTR dw1, DWORD_PTR dw2) DECLSPEC_HIDDEN
LPWAVEFORMATEX DSOUND_CopyFormat(LPCWAVEFORMATEX wfex) DECLSPEC_HIDDEN
void DSOUND_MixToTemporary(const IDirectSoundBufferImpl *dsb, DWORD writepos, DWORD mixlen, BOOL inmixer) DECLSPEC_HIDDEN
HRESULT IKsBufferPropertySetImpl_Destroy(IKsBufferPropertySetImpl *piks) DECLSPEC_HIDDEN
void DSOUND_RecalcVolPan(PDSVOLUMEPAN volpan) DECLSPEC_HIDDEN
HRESULT DirectSoundDevice_RemoveBuffer(DirectSoundDevice *device, IDirectSoundBufferImpl *pDSB) DECLSPEC_HIDDEN
const char * dumpCooperativeLevel(DWORD level) DECLSPEC_HIDDEN
void(* mixfunc)(const void *, void *, unsigned)
HRESULT IDirectSound3DListenerImpl_Create(DirectSoundDevice *device, IDirectSound3DListenerImpl **pdsl) DECLSPEC_HIDDEN
DWORD DSOUND_fraglen(DWORD nSamplesPerSec, DWORD nBlockAlign) DECLSPEC_HIDDEN
HRESULT IDirectSound3DBufferImpl_Destroy(IDirectSound3DBufferImpl *pds3db) DECLSPEC_HIDDEN
HRESULT IDirectSoundBufferImpl_Create(DirectSoundDevice *device, IDirectSoundBufferImpl **ppdsb, LPCDSBUFFERDESC dsbd) DECLSPEC_HIDDEN
void DSOUND_CheckEvent(const IDirectSoundBufferImpl *dsb, DWORD playpos, int len) DECLSPEC_HIDDEN
HRESULT DirectSoundDevice_SetSpeakerConfig(DirectSoundDevice *device, DWORD config) DECLSPEC_HIDDEN
HRESULT DSOUND_PrimaryCreate(DirectSoundDevice *device) DECLSPEC_HIDDEN
HRESULT primarybuffer_create(DirectSoundDevice *device, IDirectSoundBufferImpl **ppdsb, const DSBUFFERDESC *dsbd) DECLSPEC_HIDDEN
HRESULT DSOUND_FullDuplexCreate(REFIID riid, LPDIRECTSOUNDFULLDUPLEX *ppDSFD) DECLSPEC_HIDDEN
void DSOUND_RecalcFormat(IDirectSoundBufferImpl *dsb) DECLSPEC_HIDDEN
void primarybuffer_destroy(IDirectSoundBufferImpl *This) DECLSPEC_HIDDEN
HRESULT mmErr(UINT err) DECLSPEC_HIDDEN
HRESULT DSOUND_PrimaryDestroy(DirectSoundDevice *device) DECLSPEC_HIDDEN
HRESULT DirectSoundDevice_VerifyCertification(DirectSoundDevice *device, LPDWORD pdwCertified) DECLSPEC_HIDDEN
HRESULT DSOUND_CaptureCreate(REFIID riid, LPDIRECTSOUNDCAPTURE *ppDSC) DECLSPEC_HIDDEN
HRESULT DirectSoundDevice_Initialize(DirectSoundDevice **ppDevice, LPCGUID lpcGUID) DECLSPEC_HIDDEN
HRESULT DirectSoundDevice_CreateSoundBuffer(DirectSoundDevice *device, LPCDSBUFFERDESC dsbd, LPLPDIRECTSOUNDBUFFER ppdsb, LPUNKNOWN lpunk, BOOL from8) DECLSPEC_HIDDEN
static unsigned(__cdecl *hash_bstr)(bstr_t s)
IDirectSoundCaptureBufferImpl * capture_buffer
RTL_RWLOCK buffer_list_lock
IDirectSound3DListenerImpl * listener
IDirectSoundBufferImpl * primary
IDirectSoundBufferImpl ** buffers
IDirectSoundBufferImpl * dsb
const IDirectSound3DBufferVtbl * lpVtbl
DirectSoundDevice * device
const IDirectSound3DListenerVtbl * lpVtbl
IDirectSoundNotifyImpl * notify
IDirectSound3DBufferImpl * ds3db
IKsBufferPropertySetImpl * iks
DirectSoundDevice * device
LPDSBPOSITIONNOTIFY notifies
IDirectSoundBuffer8 IDirectSoundBuffer8_iface
PIDSDRIVERNOTIFY hwnotify
DirectSoundCaptureDevice * device
IDirectSoundCaptureNotifyImpl * notify
LPDSBPOSITIONNOTIFY notifies
const IDirectSoundCaptureBuffer8Vtbl * lpVtbl
PIDSDRIVERNOTIFY hwnotify
IDirectSoundBufferImpl * dsb
const IKsPropertySetVtbl * lpVtbl