2002-06-13 19:15:06 +00:00
|
|
|
/* DirectSound
|
|
|
|
*
|
|
|
|
* Copyright 1998 Marcus Meissner
|
|
|
|
* Copyright 1998 Rob Riggs
|
|
|
|
* Copyright 2000-2001 TransGaming Technologies, Inc.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 12:49:52 +00:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2002-06-13 19:15:06 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* Linux does not support better timing than 10ms */
|
2007-06-13 15:05:49 +00:00
|
|
|
#define DS_TIME_RES 2 /* Resolution of multimedia timer */
|
2002-06-13 19:15:06 +00:00
|
|
|
#define DS_TIME_DEL 10 /* Delay of multimedia timer callback, and duration of HEL fragment */
|
|
|
|
|
2011-09-27 13:51:07 +00:00
|
|
|
#include "wingdi.h"
|
|
|
|
#include "mmdeviceapi.h"
|
|
|
|
#include "audioclient.h"
|
2015-03-03 07:47:36 +00:00
|
|
|
#include "mediaobj.h"
|
2011-09-27 13:51:07 +00:00
|
|
|
#include "mmsystem.h"
|
2015-03-03 07:47:36 +00:00
|
|
|
#include "uuids.h"
|
2011-09-27 13:51:07 +00:00
|
|
|
|
2007-07-29 21:47:01 +00:00
|
|
|
#include "wine/list.h"
|
|
|
|
|
2015-01-06 19:27:21 +00:00
|
|
|
#define DS_MAX_CHANNELS 6
|
2014-12-27 21:32:24 +00:00
|
|
|
|
2011-04-21 09:25:41 +00:00
|
|
|
extern int ds_hel_buflen DECLSPEC_HIDDEN;
|
|
|
|
extern int ds_snd_queue_max DECLSPEC_HIDDEN;
|
2002-06-13 19:15:06 +00:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* Predeclare the interface implementation structures
|
|
|
|
*/
|
2004-07-04 00:13:44 +00:00
|
|
|
typedef struct IDirectSoundBufferImpl IDirectSoundBufferImpl;
|
2005-05-31 09:31:37 +00:00
|
|
|
typedef struct DirectSoundDevice DirectSoundDevice;
|
2002-06-13 19:15:06 +00:00
|
|
|
|
2007-11-07 19:31:53 +00:00
|
|
|
/* dsound_convert.h */
|
2011-11-07 16:25:49 +00:00
|
|
|
typedef float (*bitsgetfunc)(const IDirectSoundBufferImpl *, DWORD, DWORD);
|
|
|
|
typedef void (*bitsputfunc)(const IDirectSoundBufferImpl *, DWORD, DWORD, float);
|
|
|
|
extern const bitsgetfunc getbpp[5] DECLSPEC_HIDDEN;
|
2012-05-15 13:29:34 +00:00
|
|
|
void putieee32(const IDirectSoundBufferImpl *dsb, DWORD pos, DWORD channel, float value) DECLSPEC_HIDDEN;
|
|
|
|
void mixieee32(float *src, float *dst, unsigned samples) DECLSPEC_HIDDEN;
|
2007-11-07 19:32:09 +00:00
|
|
|
typedef void (*normfunc)(const void *, void *, unsigned);
|
2012-05-14 20:19:46 +00:00
|
|
|
extern const normfunc normfunctions[5] DECLSPEC_HIDDEN;
|
2007-11-07 19:31:53 +00:00
|
|
|
|
2011-09-24 14:02:52 +00:00
|
|
|
typedef struct _DSVOLUMEPAN
|
|
|
|
{
|
2014-12-27 21:32:24 +00:00
|
|
|
DWORD dwTotalAmpFactor[DS_MAX_CHANNELS];
|
2011-09-24 14:02:52 +00:00
|
|
|
LONG lVolume;
|
|
|
|
LONG lPan;
|
|
|
|
} DSVOLUMEPAN,*PDSVOLUMEPAN;
|
|
|
|
|
2015-03-03 07:47:36 +00:00
|
|
|
typedef struct DSFilter {
|
|
|
|
GUID guid;
|
|
|
|
IMediaObject* obj;
|
|
|
|
IMediaObjectInPlace* inplace;
|
|
|
|
} DSFilter;
|
|
|
|
|
2006-01-14 16:06:52 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
* IDirectSoundDevice implementation structure
|
|
|
|
*/
|
2005-05-31 09:31:37 +00:00
|
|
|
struct DirectSoundDevice
|
|
|
|
{
|
2005-07-12 19:21:36 +00:00
|
|
|
LONG ref;
|
2005-05-31 09:31:37 +00:00
|
|
|
|
2003-03-15 00:54:11 +00:00
|
|
|
GUID guid;
|
2011-09-27 20:19:04 +00:00
|
|
|
DSCAPS drvcaps;
|
2012-12-19 09:30:04 +00:00
|
|
|
DWORD priolevel, sleeptime;
|
2012-11-16 19:35:51 +00:00
|
|
|
PWAVEFORMATEX pwfx, primary_pwfx;
|
2012-12-19 09:30:04 +00:00
|
|
|
UINT playing_offs_bytes, in_mmdev_bytes, prebuf;
|
2002-06-13 19:15:06 +00:00
|
|
|
DWORD fraglen;
|
|
|
|
LPBYTE buffer;
|
|
|
|
DWORD writelead, buflen, state, playpos, mixpos;
|
|
|
|
int nrofbuffers;
|
|
|
|
IDirectSoundBufferImpl** buffers;
|
2004-09-07 19:32:21 +00:00
|
|
|
RTL_RWLOCK buffer_list_lock;
|
2003-02-15 00:01:17 +00:00
|
|
|
CRITICAL_SECTION mixlock;
|
2011-08-30 23:11:29 +00:00
|
|
|
IDirectSoundBufferImpl *primary;
|
2003-09-01 23:58:43 +00:00
|
|
|
DWORD speaker_config;
|
2015-01-06 19:26:47 +00:00
|
|
|
float speaker_angles[DS_MAX_CHANNELS];
|
|
|
|
int speaker_num[DS_MAX_CHANNELS];
|
|
|
|
int num_speakers;
|
|
|
|
int lfe_channel;
|
2012-05-15 13:29:34 +00:00
|
|
|
float *mix_buffer, *tmp_buffer;
|
2007-11-07 19:32:22 +00:00
|
|
|
DWORD tmp_buffer_len, mix_buffer_len;
|
|
|
|
|
2008-09-28 18:47:28 +00:00
|
|
|
DSVOLUMEPAN volpan;
|
|
|
|
|
2007-11-07 19:32:22 +00:00
|
|
|
normfunc normfunction;
|
2003-06-27 22:22:15 +00:00
|
|
|
|
|
|
|
/* DirectSound3DListener fields */
|
|
|
|
DS3DLISTENER ds3dl;
|
|
|
|
BOOL ds3dl_need_recalc;
|
2011-09-27 13:51:07 +00:00
|
|
|
|
|
|
|
IMMDevice *mmdevice;
|
|
|
|
IAudioClient *client;
|
|
|
|
IAudioClock *clock;
|
|
|
|
IAudioStreamVolume *volume;
|
|
|
|
IAudioRenderClient *render;
|
|
|
|
|
2012-12-19 09:30:04 +00:00
|
|
|
HANDLE sleepev, thread;
|
2015-03-17 16:35:47 +00:00
|
|
|
HANDLE thread_finished;
|
2011-09-27 13:51:07 +00:00
|
|
|
struct list entry;
|
2002-06-13 19:15:06 +00:00
|
|
|
};
|
|
|
|
|
2003-06-27 22:22:15 +00:00
|
|
|
/* reference counted buffer memory for duplicated buffer memory */
|
|
|
|
typedef struct BufferMemory
|
|
|
|
{
|
2005-07-12 19:21:36 +00:00
|
|
|
LONG ref;
|
2015-03-03 07:47:27 +00:00
|
|
|
LONG lockedbytes;
|
2003-06-27 22:22:15 +00:00
|
|
|
LPBYTE memory;
|
2007-07-29 21:47:01 +00:00
|
|
|
struct list buffers;
|
2003-06-27 22:22:15 +00:00
|
|
|
} BufferMemory;
|
|
|
|
|
2006-01-14 16:06:52 +00:00
|
|
|
HRESULT DirectSoundDevice_AddBuffer(
|
2006-01-17 15:10:15 +00:00
|
|
|
DirectSoundDevice * device,
|
2011-04-21 09:25:41 +00:00
|
|
|
IDirectSoundBufferImpl * pDSB) DECLSPEC_HIDDEN;
|
2012-09-25 21:25:45 +00:00
|
|
|
void DirectSoundDevice_RemoveBuffer(DirectSoundDevice * device, IDirectSoundBufferImpl * pDSB) DECLSPEC_HIDDEN;
|
2004-07-04 00:13:44 +00:00
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
* IDirectSoundBuffer implementation structure
|
|
|
|
*/
|
|
|
|
struct IDirectSoundBufferImpl
|
|
|
|
{
|
2011-08-24 00:30:37 +00:00
|
|
|
IDirectSoundBuffer8 IDirectSoundBuffer8_iface;
|
2012-01-19 23:28:16 +00:00
|
|
|
IDirectSoundNotify IDirectSoundNotify_iface;
|
2012-01-15 23:13:31 +00:00
|
|
|
IDirectSound3DListener IDirectSound3DListener_iface; /* only primary buffer */
|
2012-01-19 00:18:30 +00:00
|
|
|
IDirectSound3DBuffer IDirectSound3DBuffer_iface; /* only secondary buffer */
|
2012-01-17 00:53:10 +00:00
|
|
|
IKsPropertySet IKsPropertySet_iface;
|
2011-08-25 21:42:44 +00:00
|
|
|
LONG numIfaces; /* "in use interfaces" refcount */
|
2012-01-19 23:28:16 +00:00
|
|
|
LONG ref, refn, ref3D, refiks;
|
2002-06-13 19:15:06 +00:00
|
|
|
/* IDirectSoundBufferImpl fields */
|
2006-01-06 11:35:20 +00:00
|
|
|
DirectSoundDevice* device;
|
2007-07-29 19:01:43 +00:00
|
|
|
RTL_RWLOCK lock;
|
2004-08-18 00:30:37 +00:00
|
|
|
PWAVEFORMATEX pwfx;
|
2003-06-27 22:22:15 +00:00
|
|
|
BufferMemory* buffer;
|
|
|
|
DWORD playflags,state,leadin;
|
2007-07-29 21:47:01 +00:00
|
|
|
DWORD writelead,buflen;
|
2003-06-27 22:22:15 +00:00
|
|
|
DWORD nAvgBytesPerSec;
|
2012-05-01 20:01:32 +00:00
|
|
|
DWORD freq;
|
2007-06-13 15:05:49 +00:00
|
|
|
DSVOLUMEPAN volpan;
|
2003-06-27 22:22:15 +00:00
|
|
|
DSBUFFERDESC dsbd;
|
2002-06-13 19:15:06 +00:00
|
|
|
/* used for frequency conversion (PerfectPitch) */
|
2012-05-01 20:01:06 +00:00
|
|
|
ULONG freqneeded;
|
2012-05-06 18:06:13 +00:00
|
|
|
DWORD firstep;
|
2014-12-27 22:41:07 +00:00
|
|
|
float firgain;
|
|
|
|
LONG64 freqAdjustNum,freqAdjustDen;
|
|
|
|
LONG64 freqAccNum;
|
2007-07-29 21:47:01 +00:00
|
|
|
/* used for mixing */
|
2012-05-14 20:19:50 +00:00
|
|
|
DWORD sec_mixpos;
|
2012-05-01 20:01:32 +00:00
|
|
|
|
2012-01-19 23:28:16 +00:00
|
|
|
/* IDirectSoundNotify fields */
|
2003-09-01 23:58:43 +00:00
|
|
|
LPDSBPOSITIONNOTIFY notifies;
|
|
|
|
int nrofnotifies;
|
2003-06-27 22:22:15 +00:00
|
|
|
/* DirectSound3DBuffer fields */
|
|
|
|
DS3DBUFFER ds3db_ds3db;
|
|
|
|
LONG ds3db_lVolume;
|
|
|
|
BOOL ds3db_need_recalc;
|
2011-11-07 16:25:49 +00:00
|
|
|
/* Used for bit depth conversion */
|
2011-12-12 20:07:49 +00:00
|
|
|
int mix_channels;
|
|
|
|
bitsgetfunc get, get_aux;
|
|
|
|
bitsputfunc put, put_aux;
|
2015-03-03 07:47:36 +00:00
|
|
|
int num_filters;
|
|
|
|
DSFilter* filters;
|
2011-11-07 16:25:49 +00:00
|
|
|
|
2007-07-29 21:47:01 +00:00
|
|
|
struct list entry;
|
2002-06-13 19:15:06 +00:00
|
|
|
};
|
|
|
|
|
2011-12-12 20:07:49 +00:00
|
|
|
float get_mono(const IDirectSoundBufferImpl *dsb, DWORD pos, DWORD channel) DECLSPEC_HIDDEN;
|
|
|
|
void put_mono2stereo(const IDirectSoundBufferImpl *dsb, DWORD pos, DWORD channel, float value) DECLSPEC_HIDDEN;
|
2015-01-06 19:27:10 +00:00
|
|
|
void put_mono2quad(const IDirectSoundBufferImpl *dsb, DWORD pos, DWORD channel, float value) DECLSPEC_HIDDEN;
|
|
|
|
void put_stereo2quad(const IDirectSoundBufferImpl *dsb, DWORD pos, DWORD channel, float value) DECLSPEC_HIDDEN;
|
2015-01-06 19:27:21 +00:00
|
|
|
void put_mono2surround51(const IDirectSoundBufferImpl *dsb, DWORD pos, DWORD channel, float value) DECLSPEC_HIDDEN;
|
|
|
|
void put_stereo2surround51(const IDirectSoundBufferImpl *dsb, DWORD pos, DWORD channel, float value) DECLSPEC_HIDDEN;
|
2011-12-12 20:07:49 +00:00
|
|
|
|
2006-01-03 16:32:50 +00:00
|
|
|
HRESULT IDirectSoundBufferImpl_Create(
|
2006-01-06 11:35:20 +00:00
|
|
|
DirectSoundDevice *device,
|
|
|
|
IDirectSoundBufferImpl **ppdsb,
|
2011-04-21 09:25:41 +00:00
|
|
|
LPCDSBUFFERDESC dsbd) DECLSPEC_HIDDEN;
|
2006-01-14 16:06:52 +00:00
|
|
|
HRESULT IDirectSoundBufferImpl_Duplicate(
|
|
|
|
DirectSoundDevice *device,
|
|
|
|
IDirectSoundBufferImpl **ppdsb,
|
2011-04-21 09:25:41 +00:00
|
|
|
IDirectSoundBufferImpl *pdsb) DECLSPEC_HIDDEN;
|
2011-08-25 21:42:44 +00:00
|
|
|
void secondarybuffer_destroy(IDirectSoundBufferImpl *This) DECLSPEC_HIDDEN;
|
2012-01-15 23:13:31 +00:00
|
|
|
const IDirectSound3DListenerVtbl ds3dlvt DECLSPEC_HIDDEN;
|
2012-01-19 00:18:30 +00:00
|
|
|
const IDirectSound3DBufferVtbl ds3dbvt DECLSPEC_HIDDEN;
|
2012-01-17 00:53:10 +00:00
|
|
|
const IKsPropertySetVtbl iksbvt DECLSPEC_HIDDEN;
|
2002-06-13 19:15:06 +00:00
|
|
|
|
2012-08-23 23:47:14 +00:00
|
|
|
HRESULT IKsPrivatePropertySetImpl_Create(REFIID riid, void **ppv) DECLSPEC_HIDDEN;
|
2002-06-13 19:15:06 +00:00
|
|
|
|
2006-01-16 19:39:52 +00:00
|
|
|
/*******************************************************************************
|
|
|
|
*/
|
2002-06-13 19:15:06 +00:00
|
|
|
|
2004-09-07 19:32:21 +00:00
|
|
|
/* dsound.c */
|
|
|
|
|
2012-07-19 00:00:27 +00:00
|
|
|
HRESULT DSOUND_Create(REFIID riid, void **ppv) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT DSOUND_Create8(REFIID riid, void **ppv) DECLSPEC_HIDDEN;
|
2012-08-15 23:45:29 +00:00
|
|
|
HRESULT IDirectSoundImpl_Create(IUnknown *outer_unk, REFIID riid, void **ppv, BOOL has_ds8) DECLSPEC_HIDDEN;
|
2015-01-06 19:26:47 +00:00
|
|
|
void DSOUND_ParseSpeakerConfig(DirectSoundDevice *device) DECLSPEC_HIDDEN;
|
2004-09-07 19:32:21 +00:00
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
/* primary.c */
|
|
|
|
|
2011-04-21 09:25:41 +00:00
|
|
|
HRESULT DSOUND_PrimaryCreate(DirectSoundDevice *device) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT DSOUND_PrimaryDestroy(DirectSoundDevice *device) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT DSOUND_PrimaryPlay(DirectSoundDevice *device) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT DSOUND_PrimaryStop(DirectSoundDevice *device) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT DSOUND_PrimaryGetPosition(DirectSoundDevice *device, LPDWORD playpos, LPDWORD writepos) DECLSPEC_HIDDEN;
|
|
|
|
LPWAVEFORMATEX DSOUND_CopyFormat(LPCWAVEFORMATEX wfex) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT DSOUND_ReopenDevice(DirectSoundDevice *device, BOOL forcewave) DECLSPEC_HIDDEN;
|
2012-11-16 19:35:51 +00:00
|
|
|
HRESULT DSOUND_PrimaryOpen(DirectSoundDevice *device) DECLSPEC_HIDDEN;
|
2011-08-30 23:11:29 +00:00
|
|
|
HRESULT primarybuffer_create(DirectSoundDevice *device, IDirectSoundBufferImpl **ppdsb,
|
|
|
|
const DSBUFFERDESC *dsbd) DECLSPEC_HIDDEN;
|
2011-08-30 23:13:33 +00:00
|
|
|
void primarybuffer_destroy(IDirectSoundBufferImpl *This) DECLSPEC_HIDDEN;
|
2011-08-30 23:17:04 +00:00
|
|
|
HRESULT primarybuffer_SetFormat(DirectSoundDevice *device, LPCWAVEFORMATEX wfex) DECLSPEC_HIDDEN;
|
2012-05-09 13:48:56 +00:00
|
|
|
LONG capped_refcount_dec(LONG *ref) DECLSPEC_HIDDEN;
|
2002-06-13 19:15:06 +00:00
|
|
|
|
2006-08-18 05:13:31 +00:00
|
|
|
/* duplex.c */
|
2012-08-15 23:27:12 +00:00
|
|
|
|
|
|
|
HRESULT DSOUND_FullDuplexCreate(REFIID riid, void **ppv) DECLSPEC_HIDDEN;
|
2006-08-18 05:13:31 +00:00
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
/* mixer.c */
|
2011-04-21 09:25:41 +00:00
|
|
|
void DSOUND_CheckEvent(const IDirectSoundBufferImpl *dsb, DWORD playpos, int len) DECLSPEC_HIDDEN;
|
|
|
|
void DSOUND_RecalcVolPan(PDSVOLUMEPAN volpan) DECLSPEC_HIDDEN;
|
|
|
|
void DSOUND_AmpFactorToVolPan(PDSVOLUMEPAN volpan) DECLSPEC_HIDDEN;
|
|
|
|
void DSOUND_RecalcFormat(IDirectSoundBufferImpl *dsb) DECLSPEC_HIDDEN;
|
2012-05-01 20:01:06 +00:00
|
|
|
DWORD DSOUND_secpos_to_bufpos(const IDirectSoundBufferImpl *dsb, DWORD secpos, DWORD secmixpos, float *overshot) DECLSPEC_HIDDEN;
|
2007-07-29 21:47:01 +00:00
|
|
|
|
2012-12-19 09:30:04 +00:00
|
|
|
DWORD CALLBACK DSOUND_mixthread(void *ptr) DECLSPEC_HIDDEN;
|
2002-06-13 19:15:06 +00:00
|
|
|
|
2003-06-27 22:22:15 +00:00
|
|
|
/* sound3d.c */
|
|
|
|
|
2011-04-21 09:25:41 +00:00
|
|
|
void DSOUND_Calc3DBuffer(IDirectSoundBufferImpl *dsb) DECLSPEC_HIDDEN;
|
2003-06-27 22:22:15 +00:00
|
|
|
|
2006-01-16 19:39:14 +00:00
|
|
|
/* capture.c */
|
2006-08-18 05:13:31 +00:00
|
|
|
|
2012-08-15 23:20:01 +00:00
|
|
|
HRESULT DSOUND_CaptureCreate(REFIID riid, void **ppv) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT DSOUND_CaptureCreate8(REFIID riid, void **ppv) DECLSPEC_HIDDEN;
|
2012-08-15 23:49:10 +00:00
|
|
|
HRESULT IDirectSoundCaptureImpl_Create(IUnknown *outer_unk, REFIID riid, void **ppv, BOOL has_dsc8) DECLSPEC_HIDDEN;
|
2006-01-16 19:39:14 +00:00
|
|
|
|
2003-02-15 00:01:17 +00:00
|
|
|
#define STATE_STOPPED 0
|
|
|
|
#define STATE_STARTING 1
|
|
|
|
#define STATE_PLAYING 2
|
|
|
|
#define STATE_CAPTURING 2
|
|
|
|
#define STATE_STOPPING 3
|
2002-06-13 19:15:06 +00:00
|
|
|
|
2011-09-27 13:51:07 +00:00
|
|
|
extern CRITICAL_SECTION DSOUND_renderers_lock DECLSPEC_HIDDEN;
|
2011-09-27 13:51:22 +00:00
|
|
|
extern CRITICAL_SECTION DSOUND_capturers_lock DECLSPEC_HIDDEN;
|
|
|
|
extern struct list DSOUND_capturers DECLSPEC_HIDDEN;
|
2011-09-27 13:51:07 +00:00
|
|
|
extern struct list DSOUND_renderers DECLSPEC_HIDDEN;
|
2010-01-05 21:20:52 +00:00
|
|
|
|
2011-09-27 13:51:07 +00:00
|
|
|
extern GUID DSOUND_renderer_guids[MAXWAVEDRIVERS] DECLSPEC_HIDDEN;
|
2011-04-21 09:25:41 +00:00
|
|
|
extern GUID DSOUND_capture_guids[MAXWAVEDRIVERS] DECLSPEC_HIDDEN;
|
2004-08-20 20:01:31 +00:00
|
|
|
|
2011-09-27 13:51:33 +00:00
|
|
|
extern WCHAR wine_vxd_drv[] DECLSPEC_HIDDEN;
|
|
|
|
|
2011-04-21 09:25:41 +00:00
|
|
|
void setup_dsound_options(void) DECLSPEC_HIDDEN;
|
2011-09-27 13:51:07 +00:00
|
|
|
|
|
|
|
HRESULT get_mmdevice(EDataFlow flow, const GUID *tgt, IMMDevice **device) DECLSPEC_HIDDEN;
|
2011-09-27 13:51:22 +00:00
|
|
|
|
|
|
|
BOOL DSOUND_check_supported(IAudioClient *client, DWORD rate,
|
|
|
|
DWORD depth, WORD channels) DECLSPEC_HIDDEN;
|
2011-09-27 13:51:33 +00:00
|
|
|
HRESULT enumerate_mmdevices(EDataFlow flow, GUID *guids,
|
|
|
|
LPDSENUMCALLBACKW cb, void *user) DECLSPEC_HIDDEN;
|