Release 4.20.
[wine.git] / include / dsound.h
blobb4a2509e8976006a61cceebbf127b989f9355010
1 /*
2 * Copyright (C) the Wine project
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __DSOUND_INCLUDED__
20 #define __DSOUND_INCLUDED__
22 #ifndef DIRECTSOUND_VERSION
23 #define DIRECTSOUND_VERSION 0x0900
24 #endif
26 #define COM_NO_WINDOWS_H
27 #include <objbase.h>
28 #include <float.h>
30 #ifdef __cplusplus
31 extern "C" {
32 #endif /* defined(__cplusplus) */
34 #ifndef DX_SHARED_DEFINES
36 typedef float D3DVALUE, *LPD3DVALUE;
38 #ifndef D3DCOLOR_DEFINED
39 typedef DWORD D3DCOLOR, *LPD3DCOLOR;
40 #define D3DCOLOR_DEFINED
41 #endif
43 #ifndef D3DVECTOR_DEFINED
44 typedef struct _D3DVECTOR {
45 float x;
46 float y;
47 float z;
48 } D3DVECTOR;
49 #define D3DVECTOR_DEFINED
50 #endif
52 #ifndef LPD3DVECTOR_DEFINED
53 typedef D3DVECTOR *LPD3DVECTOR;
54 #define LPD3DVECTOR_DEFINED
55 #endif
57 #define DX_SHARED_DEFINES
58 #endif /* DX_SHARED_DEFINES */
60 /*****************************************************************************
61 * Predeclare the interfaces
63 DEFINE_GUID(CLSID_DirectSound, 0x47d4d946, 0x62e8, 0x11cf, 0x93, 0xbc, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00);
64 DEFINE_GUID(CLSID_DirectSound8, 0x3901cc3f, 0x84b5, 0x4fa4, 0xba, 0x35, 0xaa, 0x81, 0x72, 0xb8, 0xa0, 0x9b);
65 DEFINE_GUID(CLSID_DirectSoundCapture, 0xb0210780, 0x89cd, 0x11d0, 0xaf, 0x08, 0x00, 0xa0, 0xc9, 0x25, 0xcd, 0x16);
66 DEFINE_GUID(CLSID_DirectSoundCapture8, 0xe4bcac13, 0x7f99, 0x4908, 0x9a, 0x8e, 0x74, 0xe3, 0xbf, 0x24, 0xb6, 0xe1);
67 DEFINE_GUID(CLSID_DirectSoundFullDuplex,0xfea4300c, 0x7959, 0x4147, 0xb2, 0x6a, 0x23, 0x77, 0xb9, 0xe7, 0xa9, 0x1d);
69 DEFINE_GUID(IID_IDirectSound, 0x279AFA83,0x4981,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60);
70 typedef struct IDirectSound *LPDIRECTSOUND,**LPLPDIRECTSOUND;
72 DEFINE_GUID(IID_IDirectSound8, 0xC50A7E93,0xF395,0x4834,0x9E,0xF6,0x7F,0xA9,0x9D,0xE5,0x09,0x66);
73 typedef struct IDirectSound8 *LPDIRECTSOUND8,**LPLPDIRECTSOUND8;
75 DEFINE_GUID(IID_IDirectSoundBuffer, 0x279AFA85,0x4981,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60);
76 typedef struct IDirectSoundBuffer *LPDIRECTSOUNDBUFFER,**LPLPDIRECTSOUNDBUFFER;
78 DEFINE_GUID(IID_IDirectSoundBuffer8, 0x6825A449,0x7524,0x4D82,0x92,0x0F,0x50,0xE3,0x6A,0xB3,0xAB,0x1E);
79 typedef struct IDirectSoundBuffer8 *LPDIRECTSOUNDBUFFER8,**LPLPDIRECTSOUNDBUFFER8;
81 DEFINE_GUID(IID_IDirectSoundNotify, 0xB0210783,0x89cd,0x11d0,0xAF,0x08,0x00,0xA0,0xC9,0x25,0xCD,0x16);
82 typedef struct IDirectSoundNotify *LPDIRECTSOUNDNOTIFY,**LPLPDIRECTSOUNDNOTIFY;
83 #define IID_IDirectSoundNotify8 IID_IDirectSoundNotify
85 DEFINE_GUID(IID_IDirectSound3DListener, 0x279AFA84,0x4981,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60);
86 typedef struct IDirectSound3DListener *LPDIRECTSOUND3DLISTENER,**LPLPDIRECTSOUND3DLISTENER;
88 DEFINE_GUID(IID_IDirectSound3DBuffer, 0x279AFA86,0x4981,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60);
89 typedef struct IDirectSound3DBuffer *LPDIRECTSOUND3DBUFFER,**LPLPDIRECTSOUND3DBUFFER;
91 DEFINE_GUID(IID_IDirectSoundCapture, 0xB0210781,0x89CD,0x11D0,0xAF,0x08,0x00,0xA0,0xC9,0x25,0xCD,0x16);
92 typedef struct IDirectSoundCapture *LPDIRECTSOUNDCAPTURE,**LPLPDIRECTSOUNDCAPTURE;
93 #define IID_IDirectSoundCapture8 IID_IDirectSoundCapture
94 typedef struct IDirectSoundCapture IDirectSoundCapture8,*LPDIRECTSOUNDCAPTURE8,**LPLPDIRECTSOUNDCAPTURE8;
96 DEFINE_GUID(IID_IDirectSoundCaptureBuffer,0xB0210782,0x89CD,0x11D0,0xAF,0x08,0x00,0xA0,0xC9,0x25,0xCD,0x16);
97 typedef struct IDirectSoundCaptureBuffer *LPDIRECTSOUNDCAPTUREBUFFER,**LPLPDIRECTSOUNDCAPTUREBUFFER;
99 DEFINE_GUID(IID_IDirectSoundCaptureBuffer8,0x00990DF4,0x0DBB,0x4872,0x83,0x3E,0x6D,0x30,0x3E,0x80,0xAE,0xB6);
100 typedef struct IDirectSoundCaptureBuffer8 *LPDIRECTSOUNDCAPTUREBUFFER8,**LPLPDIRECTSOUNDCAPTUREBUFFER8;
102 DEFINE_GUID(IID_IDirectSoundFullDuplex, 0xEDCB4C7A,0xDAAB,0x4216,0xA4,0x2E,0x6C,0x50,0x59,0x6D,0xDC,0x1D);
103 typedef struct IDirectSoundFullDuplex *LPDIRECTSOUNDFULLDUPLEX,**LPLPDIRECTSOUNDFULLDUPLEX;
104 #define IID_IDirectSoundFullDuplex8 IID_IDirectSoundFullDuplex
106 DEFINE_GUID(IID_IDirectSoundFXI3DL2Reverb, 0x4b166a6a, 0x0d66, 0x43f3, 0x80, 0xe3, 0xee, 0x62, 0x80, 0xde, 0xe1, 0xa4);
107 typedef struct IDirectSoundFXI3DL2Reverb *LPDIRECTSOUNDFXI3DL2REVERB;
108 #define IDirectSoundFXI3DL2Reverb8 IDirectSoundFXI3DL2Reverb
109 #define IID_IDirectSoundFXI3DL2Reverb8 IID_IDirectSoundFXI3DL2Reverb
110 typedef struct IDirectSoundFXI3DL2Reverb8 *LPDIRECTSOUNDFXI3DL2REVERB8;
112 DEFINE_GUID(DSDEVID_DefaultPlayback, 0xDEF00000,0x9C6D,0x47Ed,0xAA,0xF1,0x4D,0xDA,0x8F,0x2B,0x5C,0x03);
113 DEFINE_GUID(DSDEVID_DefaultCapture, 0xDEF00001,0x9C6D,0x47Ed,0xAA,0xF1,0x4D,0xDA,0x8F,0x2B,0x5C,0x03);
114 DEFINE_GUID(DSDEVID_DefaultVoicePlayback,0xDEF00002,0x9C6D,0x47Ed,0xAA,0xF1,0x4D,0xDA,0x8F,0x2B,0x5C,0x03);
115 DEFINE_GUID(DSDEVID_DefaultVoiceCapture, 0xDEF00003,0x9C6D,0x47ED,0xAA,0xF1,0x4D,0xDA,0x8F,0x2B,0x5C,0x03);
117 DEFINE_GUID(DSDEVID_WinePlayback, 0x40316A1D,0x605B,0xD611,0x87,0xC6,0x00,0x80,0xAD,0x00,0x02,0xFE);
119 DEFINE_GUID(GUID_DSFX_STANDARD_GARGLE, 0xDAFD8210,0x5711,0x4B91,0x9F,0xE3,0xF7,0x5B,0x7A,0xE2,0x79,0xBF);
120 DEFINE_GUID(GUID_DSFX_STANDARD_CHORUS, 0xEFE6629C,0x81F7,0x4281,0xBD,0x91,0xC9,0xD6,0x04,0xA9,0x5A,0xF6);
121 DEFINE_GUID(GUID_DSFX_STANDARD_FLANGER, 0xEFCA3D92,0xDFD8,0x4672,0xA6,0x03,0x74,0x20,0x89,0x4B,0xAD,0x98);
122 DEFINE_GUID(GUID_DSFX_STANDARD_ECHO, 0xEF3E932C,0xD40B,0x4F51,0x8C,0xCF,0x3F,0x98,0xF1,0xB2,0x9D,0x5D);
123 DEFINE_GUID(GUID_DSFX_STANDARD_DISTORTION, 0xEF114C90,0xCD1D,0x484E,0x96,0xE5,0x09,0xCF,0xAF,0x91,0x2A,0x21);
124 DEFINE_GUID(GUID_DSFX_STANDARD_COMPRESSOR, 0xEF011F79,0x4000,0x406D,0x87,0xAF,0xBF,0xFB,0x3F,0xC3,0x9D,0x57);
125 DEFINE_GUID(GUID_DSFX_STANDARD_PARAMEQ, 0x120CED89,0x3BF4,0x4173,0xA1,0x32,0x3C,0xB4,0x06,0xCF,0x32,0x31);
126 DEFINE_GUID(GUID_DSFX_STANDARD_I3DL2REVERB, 0xEF985E71,0xD5C7,0x42D4,0xBA,0x4D,0x2D,0x07,0x3E,0x2E,0x96,0xF4);
127 DEFINE_GUID(GUID_DSFX_WAVES_REVERB, 0x87FC0268,0x9A55,0x4360,0x95,0xAA,0x00,0x4A,0x1D,0x9D,0xE2,0x6C);
128 DEFINE_GUID(GUID_DSCFX_CLASS_AEC, 0xBF963D80,0xC559,0x11D0,0x8A,0x2B,0x00,0xA0,0xC9,0x25,0x5A,0xC1);
129 DEFINE_GUID(GUID_DSCFX_MS_AEC, 0xCDEBB919,0x379A,0x488A,0x87,0x65,0xF5,0x3C,0xFD,0x36,0xDE,0x40);
130 DEFINE_GUID(GUID_DSCFX_SYSTEM_AEC, 0x1C22C56D,0x9879,0x4F5B,0xA3,0x89,0x27,0x99,0x6D,0xDC,0x28,0x10);
131 DEFINE_GUID(GUID_DSCFX_CLASS_NS, 0xE07F903F,0x62FD,0x4E60,0x8C,0xDD,0xDE,0xA7,0x23,0x66,0x65,0xB5);
132 DEFINE_GUID(GUID_DSCFX_MS_NS, 0x11C5C73B,0x66E9,0x4BA1,0xA0,0xBA,0xE8,0x14,0xC6,0xEE,0xD9,0x2D);
133 DEFINE_GUID(GUID_DSCFX_SYSTEM_NS, 0x5AB0882E,0x7274,0x4516,0x87,0x7D,0x4E,0xEE,0x99,0xBA,0x4F,0xD0);
135 DEFINE_GUID(IID_IDirectSoundFXGargle, 0xd616f352,0xd622,0x11ce,0xaa,0xc5,0x00,0x20,0xaf,0x0b,0x99,0xa3);
136 #define IDirectSoundFXGargle8 IDirectSoundFXGargle
137 typedef struct IDirectSoundFXGargle8 *LPDIRECTSOUNDFXGARGLE8;
138 #define IID_IDirectSoundFXGargle8 IID_IDirectSoundFXGargle
140 DEFINE_GUID(IID_IDirectSoundFXChorus, 0x880842e3,0x145f,0x43e6,0xa9,0x34,0xa7,0x18,0x06,0xe5,0x05,0x47);
141 #define IDirectSoundFXChorus8 IDirectSoundFXChorus
142 typedef struct IDirectSoundFXChorus8 *LPDIRECTSOUNDFXCHORUS8;
143 #define IID_IDirectSoundFXChorus8 IID_IDirectSoundFXChorus
145 DEFINE_GUID(IID_IDirectSoundFXFlanger, 0x903e9878,0x2c92,0x4072,0x9b,0x2c,0xea,0x68,0xf5,0x39,0x67,0x83);
146 #define IDirectSoundFXFlanger8 IDirectSoundFXFlanger
147 typedef struct IDirectSoundFXFlanger8 *LPDIRECTSOUNDFXFLANGER8;
148 #define IID_IDirectSoundFXFlanger8 IID_IDirectSoundFXFlanger
150 DEFINE_GUID(IID_IDirectSoundFXEcho, 0x8bd28edf,0x50db,0x4e92,0xa2,0xbd,0x44,0x54,0x88, 0xd1,0xed,0x42);
151 #define IDirectSoundFXEcho8 IDirectSoundFXEcho
152 typedef struct IDirectSoundFXEcho8 *LPDIRECTSOUNDFXECHO8;
153 #define IID_IDirectSoundFXEcho8 IID_IDirectSoundFXEcho
155 DEFINE_GUID(IID_IDirectSoundFXDistortion, 0x8ecf4326,0x455f,0x4d8b,0xbd,0xa9,0x8d,0x5d,0x3e,0x9e,0x3e,0x0b);
156 #define IDirectSoundFXDistortion8 IDirectSoundFXDistortion
157 typedef struct IDirectSoundFXDistortion8 *LPDIRECTSOUNDFXDISTORTION8;
158 #define IID_IDirectSoundFXDistortion8 IID_IDirectSoundFXDistortion
160 DEFINE_GUID(IID_IDirectSoundFXCompressor, 0x4bbd1154,0x62f6,0x4e2c,0xa1,0x5c,0xd3,0xb6,0xc4,0x17,0xf7,0xa0);
161 #define IDirectSoundFXCompressor8 IDirectSoundFXCompressor
162 typedef struct IDirectSoundFXCompressor8 *LPDIRECTSOUNDFXCOMPRESSOR8;
163 #define IID_IDirectSoundFXCompressor8 IID_IDirectSoundFXCompressor
165 DEFINE_GUID(IID_IDirectSoundFXParamEq, 0xc03ca9fe,0xfe90,0x4204,0x80,0x78,0x82,0x33,0x4c,0xd1,0x77,0xda);
166 #define IDirectSoundFXParamEq8 IDirectSoundFXParamEq
167 typedef struct IDirectSoundFXParamEq8 *LPDIRECTSOUNDFXPARAMEQ8;
168 #define IID_IDirectSoundFXParamEq8 IID_IDirectSoundFXParamEq
170 DEFINE_GUID(IID_IDirectSoundFXWavesReverb, 0x46858c3a,0x0dc6,0x45e3,0xb7,0x60,0xd4,0xee,0xf1,0x6c,0xb3,0x25);
171 #define IDirectSoundFXWavesReverb8 IDirectSoundFXWavesReverb
172 typedef struct IDirectSoundFXWavesReverb8 *LPDIRECTSOUNDFXWAVESREVERB8;
173 #define IID_IDirectSoundFXWavesReverb8 IID_IDirectSoundFXWavesReverb
175 #define _FACDS 0x878
176 #define MAKE_DSHRESULT(code) MAKE_HRESULT(1,_FACDS,code)
178 #define DS_OK 0
179 #define DS_NO_VIRTUALIZATION MAKE_HRESULT(0, _FACDS, 10)
180 #define DS_INCOMPLETE MAKE_HRESULT(0, _FACDS, 20)
181 #define DSERR_ALLOCATED MAKE_DSHRESULT(10)
182 #define DSERR_CONTROLUNAVAIL MAKE_DSHRESULT(30)
183 #define DSERR_INVALIDPARAM E_INVALIDARG
184 #define DSERR_INVALIDCALL MAKE_DSHRESULT(50)
185 #define DSERR_GENERIC E_FAIL
186 #define DSERR_PRIOLEVELNEEDED MAKE_DSHRESULT(70)
187 #define DSERR_OUTOFMEMORY E_OUTOFMEMORY
188 #define DSERR_BADFORMAT MAKE_DSHRESULT(100)
189 #define DSERR_UNSUPPORTED E_NOTIMPL
190 #define DSERR_NODRIVER MAKE_DSHRESULT(120)
191 #define DSERR_ALREADYINITIALIZED MAKE_DSHRESULT(130)
192 #define DSERR_NOAGGREGATION CLASS_E_NOAGGREGATION
193 #define DSERR_BUFFERLOST MAKE_DSHRESULT(150)
194 #define DSERR_OTHERAPPHASPRIO MAKE_DSHRESULT(160)
195 #define DSERR_UNINITIALIZED MAKE_DSHRESULT(170)
196 #define DSERR_NOINTERFACE E_NOINTERFACE
197 #define DSERR_ACCESSDENIED E_ACCESSDENIED
198 #define DSERR_BUFFERTOOSMALL MAKE_DSHRESULT(180)
199 #define DSERR_DS8_REQUIRED MAKE_DSHRESULT(190)
200 #define DSERR_SENDLOOP MAKE_DSHRESULT(200)
201 #define DSERR_BADSENDBUFFERGUID MAKE_DSHRESULT(210)
202 #define DSERR_FXUNAVAILABLE MAKE_DSHRESULT(220)
203 #define DSERR_OBJECTNOTFOUND MAKE_DSHRESULT(4449)
205 #define DSCAPS_PRIMARYMONO 0x00000001
206 #define DSCAPS_PRIMARYSTEREO 0x00000002
207 #define DSCAPS_PRIMARY8BIT 0x00000004
208 #define DSCAPS_PRIMARY16BIT 0x00000008
209 #define DSCAPS_CONTINUOUSRATE 0x00000010
210 #define DSCAPS_EMULDRIVER 0x00000020
211 #define DSCAPS_CERTIFIED 0x00000040
212 #define DSCAPS_SECONDARYMONO 0x00000100
213 #define DSCAPS_SECONDARYSTEREO 0x00000200
214 #define DSCAPS_SECONDARY8BIT 0x00000400
215 #define DSCAPS_SECONDARY16BIT 0x00000800
217 #define DSSCL_NORMAL 1
218 #define DSSCL_PRIORITY 2
219 #define DSSCL_EXCLUSIVE 3
220 #define DSSCL_WRITEPRIMARY 4
222 typedef struct _DSCAPS
224 DWORD dwSize;
225 DWORD dwFlags;
226 DWORD dwMinSecondarySampleRate;
227 DWORD dwMaxSecondarySampleRate;
228 DWORD dwPrimaryBuffers;
229 DWORD dwMaxHwMixingAllBuffers;
230 DWORD dwMaxHwMixingStaticBuffers;
231 DWORD dwMaxHwMixingStreamingBuffers;
232 DWORD dwFreeHwMixingAllBuffers;
233 DWORD dwFreeHwMixingStaticBuffers;
234 DWORD dwFreeHwMixingStreamingBuffers;
235 DWORD dwMaxHw3DAllBuffers;
236 DWORD dwMaxHw3DStaticBuffers;
237 DWORD dwMaxHw3DStreamingBuffers;
238 DWORD dwFreeHw3DAllBuffers;
239 DWORD dwFreeHw3DStaticBuffers;
240 DWORD dwFreeHw3DStreamingBuffers;
241 DWORD dwTotalHwMemBytes;
242 DWORD dwFreeHwMemBytes;
243 DWORD dwMaxContigFreeHwMemBytes;
244 DWORD dwUnlockTransferRateHwBuffers;
245 DWORD dwPlayCpuOverheadSwBuffers;
246 DWORD dwReserved1;
247 DWORD dwReserved2;
248 } DSCAPS,*LPDSCAPS;
249 typedef const DSCAPS *LPCDSCAPS;
251 #define DSBPLAY_LOOPING 0x00000001
252 #define DSBPLAY_LOCHARDWARE 0x00000002
253 #define DSBPLAY_LOCSOFTWARE 0x00000004
254 #define DSBPLAY_TERMINATEBY_TIME 0x00000008
255 #define DSBPLAY_TERMINATEBY_DISTANCE 0x000000010
256 #define DSBPLAY_TERMINATEBY_PRIORITY 0x000000020
258 #define DSBSTATUS_PLAYING 0x00000001
259 #define DSBSTATUS_BUFFERLOST 0x00000002
260 #define DSBSTATUS_LOOPING 0x00000004
261 #define DSBSTATUS_LOCHARDWARE 0x00000008
262 #define DSBSTATUS_LOCSOFTWARE 0x00000010
263 #define DSBSTATUS_TERMINATED 0x00000020
265 #define DSBLOCK_FROMWRITECURSOR 0x00000001
266 #define DSBLOCK_ENTIREBUFFER 0x00000002
268 #define DSBCAPS_PRIMARYBUFFER 0x00000001
269 #define DSBCAPS_STATIC 0x00000002
270 #define DSBCAPS_LOCHARDWARE 0x00000004
271 #define DSBCAPS_LOCSOFTWARE 0x00000008
272 #define DSBCAPS_CTRL3D 0x00000010
273 #define DSBCAPS_CTRLFREQUENCY 0x00000020
274 #define DSBCAPS_CTRLPAN 0x00000040
275 #define DSBCAPS_CTRLVOLUME 0x00000080
276 #define DSBCAPS_CTRLDEFAULT 0x000000E0 /* Pan + volume + frequency. */
277 #define DSBCAPS_CTRLPOSITIONNOTIFY 0x00000100
278 #define DSBCAPS_CTRLFX 0x00000200
279 #define DSBCAPS_CTRLALL 0x000001F0 /* All control capabilities */
280 #define DSBCAPS_STICKYFOCUS 0x00004000
281 #define DSBCAPS_GLOBALFOCUS 0x00008000
282 #define DSBCAPS_GETCURRENTPOSITION2 0x00010000 /* More accurate play cursor under emulation*/
283 #define DSBCAPS_MUTE3DATMAXDISTANCE 0x00020000
284 #define DSBCAPS_LOCDEFER 0x00040000
286 #define DSBSIZE_MIN 4
287 #define DSBSIZE_MAX 0xFFFFFFF
288 #define DSBPAN_LEFT -10000
289 #define DSBPAN_CENTER 0
290 #define DSBPAN_RIGHT 10000
291 #define DSBVOLUME_MAX 0
292 #define DSBVOLUME_MIN -10000
293 #define DSBFREQUENCY_MIN 100
294 #define DSBFREQUENCY_MAX 200000
295 #define DSBFREQUENCY_ORIGINAL 0
297 #define DSBNOTIFICATIONS_MAX 100000U
299 typedef struct _DSBCAPS
301 DWORD dwSize;
302 DWORD dwFlags;
303 DWORD dwBufferBytes;
304 DWORD dwUnlockTransferRate;
305 DWORD dwPlayCpuOverhead;
306 } DSBCAPS,*LPDSBCAPS;
307 typedef const DSBCAPS *LPCDSBCAPS;
309 #define DSSCL_NORMAL 1
310 #define DSSCL_PRIORITY 2
311 #define DSSCL_EXCLUSIVE 3
312 #define DSSCL_WRITEPRIMARY 4
314 typedef struct _DSEFFECTDESC
316 DWORD dwSize;
317 DWORD dwFlags;
318 GUID guidDSFXClass;
319 DWORD_PTR dwReserved1;
320 DWORD_PTR dwReserved2;
321 } DSEFFECTDESC,*LPDSEFFECTDESC;
322 typedef const DSEFFECTDESC *LPCDSEFFECTDESC;
324 #define DSFX_LOCHARDWARE 0x00000001
325 #define DSFX_LOCSOFTWARE 0x00000002
327 enum
329 DSFXR_PRESENT,
330 DSFXR_LOCHARDWARE,
331 DSFXR_LOCSOFTWARE,
332 DSFXR_UNALLOCATED,
333 DSFXR_FAILED,
334 DSFXR_UNKNOWN,
335 DSFXR_SENDLOOP
338 typedef struct _DSBUFFERDESC1
340 DWORD dwSize;
341 DWORD dwFlags;
342 DWORD dwBufferBytes;
343 DWORD dwReserved;
344 LPWAVEFORMATEX lpwfxFormat;
345 } DSBUFFERDESC1,*LPDSBUFFERDESC1;
346 typedef const DSBUFFERDESC1 *LPCDSBUFFERDESC1;
348 typedef struct _DSBUFFERDESC
350 DWORD dwSize;
351 DWORD dwFlags;
352 DWORD dwBufferBytes;
353 DWORD dwReserved;
354 LPWAVEFORMATEX lpwfxFormat;
355 GUID guid3DAlgorithm;
356 } DSBUFFERDESC,*LPDSBUFFERDESC;
357 typedef const DSBUFFERDESC *LPCDSBUFFERDESC;
359 typedef struct _DSBPOSITIONNOTIFY
361 DWORD dwOffset;
362 HANDLE hEventNotify;
363 } DSBPOSITIONNOTIFY,*LPDSBPOSITIONNOTIFY;
364 typedef const DSBPOSITIONNOTIFY *LPCDSBPOSITIONNOTIFY;
366 #define DSSPEAKER_DIRECTOUT 0
367 #define DSSPEAKER_HEADPHONE 1
368 #define DSSPEAKER_MONO 2
369 #define DSSPEAKER_QUAD 3
370 #define DSSPEAKER_STEREO 4
371 #define DSSPEAKER_SURROUND 5
372 #define DSSPEAKER_5POINT1 6
373 #define DSSPEAKER_5POINT1_BACK 6
374 #define DSSPEAKER_7POINT1 7
375 #define DSSPEAKER_7POINT1_WIDE 7
376 #define DSSPEAKER_7POINT1_SURROUND 8
377 #define DSSPEAKER_5POINT1_SURROUND 9
379 #define DSSPEAKER_GEOMETRY_MIN 0x00000005 /* 5 degrees */
380 #define DSSPEAKER_GEOMETRY_NARROW 0x0000000A /* 10 degrees */
381 #define DSSPEAKER_GEOMETRY_WIDE 0x00000014 /* 20 degrees */
382 #define DSSPEAKER_GEOMETRY_MAX 0x000000B4 /* 180 degrees */
384 #define DSSPEAKER_COMBINED(c, g) ((DWORD)(((BYTE)(c)) | ((DWORD)((BYTE)(g))) << 16))
385 #define DSSPEAKER_CONFIG(a) ((BYTE)(a))
386 #define DSSPEAKER_GEOMETRY(a) ((BYTE)(((DWORD)(a) >> 16) & 0x00FF))
388 #define DS_CERTIFIED 0x00000000
389 #define DS_UNCERTIFIED 0x00000001
391 typedef struct _DSCEFFECTDESC
393 DWORD dwSize;
394 DWORD dwFlags;
395 GUID guidDSCFXClass;
396 GUID guidDSCFXInstance;
397 DWORD dwReserved1;
398 DWORD dwReserved2;
399 } DSCEFFECTDESC, *LPDSCEFFECTDESC;
400 typedef const DSCEFFECTDESC *LPCDSCEFFECTDESC;
402 #define DSCFX_LOCHARDWARE 0x00000001
403 #define DSCFX_LOCSOFTWARE 0x00000002
405 #define DSCFXR_LOCHARDWARE 0x00000010
406 #define DSCFXR_LOCSOFTWARE 0x00000020
408 typedef struct _DSCBUFFERDESC1
410 DWORD dwSize;
411 DWORD dwFlags;
412 DWORD dwBufferBytes;
413 DWORD dwReserved;
414 LPWAVEFORMATEX lpwfxFormat;
415 } DSCBUFFERDESC1, *LPDSCBUFFERDESC1;
417 typedef struct _DSCBUFFERDESC
419 DWORD dwSize;
420 DWORD dwFlags;
421 DWORD dwBufferBytes;
422 DWORD dwReserved;
423 LPWAVEFORMATEX lpwfxFormat;
424 DWORD dwFXCount;
425 LPDSCEFFECTDESC lpDSCFXDesc;
426 } DSCBUFFERDESC, *LPDSCBUFFERDESC;
427 typedef const DSCBUFFERDESC *LPCDSCBUFFERDESC;
429 typedef struct _DSCCAPS
431 DWORD dwSize;
432 DWORD dwFlags;
433 DWORD dwFormats;
434 DWORD dwChannels;
435 } DSCCAPS, *LPDSCCAPS;
436 typedef const DSCCAPS *LPCDSCCAPS;
438 typedef struct _DSCBCAPS
440 DWORD dwSize;
441 DWORD dwFlags;
442 DWORD dwBufferBytes;
443 DWORD dwReserved;
444 } DSCBCAPS, *LPDSCBCAPS;
445 typedef const DSCBCAPS *LPCDSCBCAPS;
447 typedef struct _DSFXI3DL2Reverb
449 LONG lRoom;
450 LONG lRoomHF;
451 FLOAT flRoomRolloffFactor;
452 FLOAT flDecayTime;
453 FLOAT flDecayHFRatio;
454 LONG lReflections;
455 FLOAT flReflectionsDelay;
456 LONG lReverb;
457 FLOAT flReverbDelay;
458 FLOAT flDiffusion;
459 FLOAT flDensity;
460 FLOAT flHFReference;
461 } DSFXI3DL2Reverb, *LPDSFXI3DL2Reverb;
463 #define DSFX_I3DL2REVERB_DECAYTIME_DEFAULT 1.49f
464 #define DSFX_I3DL2REVERB_DECAYTIME_MIN 0.1f
465 #define DSFX_I3DL2REVERB_DECAYTIME_MAX 20.0f
466 #define DSFX_I3DL2REVERB_DECAYHFRATIO_DEFAULT 0.83f
467 #define DSFX_I3DL2REVERB_DECAYHFRATIO_MIN 0.1f
468 #define DSFX_I3DL2REVERB_DECAYHFRATIO_MAX 2.0f
469 #define DSFX_I3DL2REVERB_DENSITY_DEFAULT 100.0f
470 #define DSFX_I3DL2REVERB_DENSITY_MIN 0.0f
471 #define DSFX_I3DL2REVERB_DENSITY_MAX 100.0f
472 #define DSFX_I3DL2REVERB_DIFFUSION_DEFAULT 100.0f
473 #define DSFX_I3DL2REVERB_DIFFUSION_MIN 0.0f
474 #define DSFX_I3DL2REVERB_DIFFUSION_MAX 100.0f
475 #define DSFX_I3DL2REVERB_HFREFERENCE_DEFAULT 5000.0f
476 #define DSFX_I3DL2REVERB_HFREFERENCE_MIN 20.0f
477 #define DSFX_I3DL2REVERB_HFREFERENCE_MAX 20000.0f
478 #define DSFX_I3DL2REVERB_QUALITY_DEFAULT 2
479 #define DSFX_I3DL2REVERB_QUALITY_MIN 0
480 #define DSFX_I3DL2REVERB_QUALITY_MAX 3
481 #define DSFX_I3DL2REVERB_REFLECTIONS_DEFAULT (-2602)
482 #define DSFX_I3DL2REVERB_REFLECTIONS_MIN (-10000)
483 #define DSFX_I3DL2REVERB_REFLECTIONS_MAX 1000
484 #define DSFX_I3DL2REVERB_REFLECTIONSDELAY_DEFAULT 0.007f
485 #define DSFX_I3DL2REVERB_REFLECTIONSDELAY_MIN 0.0f
486 #define DSFX_I3DL2REVERB_REFLECTIONSDELAY_MAX 0.3f
487 #define DSFX_I3DL2REVERB_REVERB_MIN (-10000)
488 #define DSFX_I3DL2REVERB_REVERB_MAX 2000
489 #define DSFX_I3DL2REVERB_REVERB_DEFAULT 200
490 #define DSFX_I3DL2REVERB_REVERBDELAY_MIN 0.0f
491 #define DSFX_I3DL2REVERB_REVERBDELAY_MAX 0.1f
492 #define DSFX_I3DL2REVERB_REVERBDELAY_DEFAULT 0.011f
493 #define DSFX_I3DL2REVERB_ROOM_DEFAULT (-1000)
494 #define DSFX_I3DL2REVERB_ROOM_MIN (-10000)
495 #define DSFX_I3DL2REVERB_ROOM_MAX 0
496 #define DSFX_I3DL2REVERB_ROOMHF_MIN (-10000)
497 #define DSFX_I3DL2REVERB_ROOMHF_MAX 0
498 #define DSFX_I3DL2REVERB_ROOMHF_DEFAULT (-100)
499 #define DSFX_I3DL2REVERB_ROOMROLLOFFFACTOR_MIN 0.0f
500 #define DSFX_I3DL2REVERB_ROOMROLLOFFFACTOR_MAX 10.0f
501 #define DSFX_I3DL2REVERB_ROOMROLLOFFFACTOR_DEFAULT 0.0f
503 typedef const DSFXI3DL2Reverb *LPCDSFXI3DL2Reverb;
505 #define DSCCAPS_EMULDRIVER DSCAPS_EMULDRIVER
506 #define DSCCAPS_CERTIFIED DSCAPS_CERTIFIED
507 #define DSCCAPS_MULTIPLECAPTURE 0x00000001
509 #define DSCBCAPS_WAVEMAPPED 0x80000000
510 #define DSCBCAPS_CTRLFX 0x00000200
512 #define DSCBLOCK_ENTIREBUFFER 0x00000001
513 #define DSCBSTART_LOOPING 0x00000001
514 #define DSCBPN_OFFSET_STOP 0xffffffff
516 #define DSCBSTATUS_CAPTURING 0x00000001
517 #define DSCBSTATUS_LOOPING 0x00000002
519 #ifndef __LPCGUID_DEFINED__
520 #define __LPCGUID_DEFINED__
521 typedef const GUID *LPCGUID;
522 #endif
524 typedef BOOL (CALLBACK *LPDSENUMCALLBACKW)(LPGUID,LPCWSTR,LPCWSTR,LPVOID);
525 typedef BOOL (CALLBACK *LPDSENUMCALLBACKA)(LPGUID,LPCSTR,LPCSTR,LPVOID);
526 DECL_WINELIB_TYPE_AW(LPDSENUMCALLBACK)
528 extern HRESULT WINAPI DirectSoundCreate(LPCGUID lpGUID,LPDIRECTSOUND *ppDS,LPUNKNOWN pUnkOuter);
529 extern HRESULT WINAPI DirectSoundEnumerateA(LPDSENUMCALLBACKA, LPVOID);
530 extern HRESULT WINAPI DirectSoundEnumerateW(LPDSENUMCALLBACKW, LPVOID);
531 #define DirectSoundEnumerate WINELIB_NAME_AW(DirectSoundEnumerate)
532 extern HRESULT WINAPI DirectSoundCaptureCreate(LPCGUID lpGUID, LPDIRECTSOUNDCAPTURE *ppDSC, LPUNKNOWN pUnkOuter);
533 extern HRESULT WINAPI DirectSoundCaptureEnumerateA(LPDSENUMCALLBACKA, LPVOID);
534 extern HRESULT WINAPI DirectSoundCaptureEnumerateW(LPDSENUMCALLBACKW, LPVOID);
535 #define DirectSoundCaptureEnumerate WINELIB_NAME_AW(DirectSoundCaptureEnumerate)
537 extern HRESULT WINAPI DirectSoundCreate8(LPCGUID lpGUID,LPDIRECTSOUND8 *ppDS8,LPUNKNOWN pUnkOuter);
538 extern HRESULT WINAPI DirectSoundCaptureCreate8(LPCGUID lpGUID, LPDIRECTSOUNDCAPTURE8 *ppDSC8, LPUNKNOWN pUnkOuter);
539 extern HRESULT WINAPI DirectSoundFullDuplexCreate(LPCGUID pcGuidCaptureDevice, LPCGUID pcGuidRenderDevice,
540 LPCDSCBUFFERDESC pcDSCBufferDesc, LPCDSBUFFERDESC pcDSBufferDesc, HWND hWnd, DWORD dwLevel,
541 LPDIRECTSOUNDFULLDUPLEX *ppDSFD, LPDIRECTSOUNDCAPTUREBUFFER8 *ppDSCBuffer8, LPDIRECTSOUNDBUFFER8 *ppDSBuffer8, LPUNKNOWN pUnkOuter);
542 #define DirectSoundFullDuplexCreate8 DirectSoundFullDuplexCreate
543 extern HRESULT WINAPI GetDeviceID(LPCGUID lpGuidSrc, LPGUID lpGuidDest);
546 /*****************************************************************************
547 * IDirectSound interface
549 #define INTERFACE IDirectSound
550 DECLARE_INTERFACE_(IDirectSound,IUnknown)
552 /*** IUnknown methods ***/
553 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
554 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
555 STDMETHOD_(ULONG,Release)(THIS) PURE;
556 /*** IDirectSound methods ***/
557 STDMETHOD(CreateSoundBuffer)(THIS_ LPCDSBUFFERDESC lpcDSBufferDesc, LPLPDIRECTSOUNDBUFFER lplpDirectSoundBuffer, IUnknown *pUnkOuter) PURE;
558 STDMETHOD(GetCaps)(THIS_ LPDSCAPS lpDSCaps) PURE;
559 STDMETHOD(DuplicateSoundBuffer)(THIS_ LPDIRECTSOUNDBUFFER lpDsbOriginal, LPLPDIRECTSOUNDBUFFER lplpDsbDuplicate) PURE;
560 STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwLevel) PURE;
561 STDMETHOD(Compact)(THIS) PURE;
562 STDMETHOD(GetSpeakerConfig)(THIS_ LPDWORD lpdwSpeakerConfig) PURE;
563 STDMETHOD(SetSpeakerConfig)(THIS_ DWORD dwSpeakerConfig) PURE;
564 STDMETHOD(Initialize)(THIS_ LPCGUID lpcGuid) PURE;
566 #undef INTERFACE
568 #if !defined(__cplusplus) || defined(CINTERFACE)
569 /*** IUnknown methods ***/
570 #define IDirectSound_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
571 #define IDirectSound_AddRef(p) (p)->lpVtbl->AddRef(p)
572 #define IDirectSound_Release(p) (p)->lpVtbl->Release(p)
573 /*** IDirectSound methods ***/
574 #define IDirectSound_CreateSoundBuffer(p,a,b,c) (p)->lpVtbl->CreateSoundBuffer(p,a,b,c)
575 #define IDirectSound_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
576 #define IDirectSound_DuplicateSoundBuffer(p,a,b) (p)->lpVtbl->DuplicateSoundBuffer(p,a,b)
577 #define IDirectSound_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
578 #define IDirectSound_Compact(p) (p)->lpVtbl->Compact(p)
579 #define IDirectSound_GetSpeakerConfig(p,a) (p)->lpVtbl->GetSpeakerConfig(p,a)
580 #define IDirectSound_SetSpeakerConfig(p,a) (p)->lpVtbl->SetSpeakerConfig(p,a)
581 #define IDirectSound_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
582 #else
583 /*** IUnknown methods ***/
584 #define IDirectSound_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
585 #define IDirectSound_AddRef(p) (p)->AddRef()
586 #define IDirectSound_Release(p) (p)->Release()
587 /*** IDirectSound methods ***/
588 #define IDirectSound_CreateSoundBuffer(p,a,b,c) (p)->CreateSoundBuffer(a,b,c)
589 #define IDirectSound_GetCaps(p,a) (p)->GetCaps(a)
590 #define IDirectSound_DuplicateSoundBuffer(p,a,b) (p)->DuplicateSoundBuffer(a,b)
591 #define IDirectSound_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
592 #define IDirectSound_Compact(p) (p)->Compact()
593 #define IDirectSound_GetSpeakerConfig(p,a) (p)->GetSpeakerConfig(a)
594 #define IDirectSound_SetSpeakerConfig(p,a) (p)->SetSpeakerConfig(a)
595 #define IDirectSound_Initialize(p,a) (p)->Initialize(a)
596 #endif
599 /*****************************************************************************
600 * IDirectSound8 interface
602 #define INTERFACE IDirectSound8
603 DECLARE_INTERFACE_(IDirectSound8,IUnknown)
605 /*** IUnknown methods ***/
606 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
607 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
608 STDMETHOD_(ULONG,Release)(THIS) PURE;
609 /*** IDirectSound8 methods ***/
610 STDMETHOD(CreateSoundBuffer)(THIS_ LPCDSBUFFERDESC lpcDSBufferDesc, LPLPDIRECTSOUNDBUFFER lplpDirectSoundBuffer, IUnknown *pUnkOuter) PURE;
611 STDMETHOD(GetCaps)(THIS_ LPDSCAPS lpDSCaps) PURE;
612 STDMETHOD(DuplicateSoundBuffer)(THIS_ LPDIRECTSOUNDBUFFER lpDsbOriginal, LPLPDIRECTSOUNDBUFFER lplpDsbDuplicate) PURE;
613 STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwLevel) PURE;
614 STDMETHOD(Compact)(THIS) PURE;
615 STDMETHOD(GetSpeakerConfig)(THIS_ LPDWORD lpdwSpeakerConfig) PURE;
616 STDMETHOD(SetSpeakerConfig)(THIS_ DWORD dwSpeakerConfig) PURE;
617 STDMETHOD(Initialize)(THIS_ LPCGUID lpcGuid) PURE;
618 STDMETHOD(VerifyCertification)(THIS_ LPDWORD pdwCertified) PURE;
620 #undef INTERFACE
622 #if !defined(__cplusplus) || defined(CINTERFACE)
623 /*** IUnknown methods ***/
624 #define IDirectSound8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
625 #define IDirectSound8_AddRef(p) (p)->lpVtbl->AddRef(p)
626 #define IDirectSound8_Release(p) (p)->lpVtbl->Release(p)
627 /*** IDirectSound methods ***/
628 #define IDirectSound8_CreateSoundBuffer(p,a,b,c) (p)->lpVtbl->CreateSoundBuffer(p,a,b,c)
629 #define IDirectSound8_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
630 #define IDirectSound8_DuplicateSoundBuffer(p,a,b) (p)->lpVtbl->DuplicateSoundBuffer(p,a,b)
631 #define IDirectSound8_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
632 #define IDirectSound8_Compact(p) (p)->lpVtbl->Compact(p)
633 #define IDirectSound8_GetSpeakerConfig(p,a) (p)->lpVtbl->GetSpeakerConfig(p,a)
634 #define IDirectSound8_SetSpeakerConfig(p,a) (p)->lpVtbl->SetSpeakerConfig(p,a)
635 #define IDirectSound8_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
636 /*** IDirectSound8 methods ***/
637 #define IDirectSound8_VerifyCertification(p,a) (p)->lpVtbl->VerifyCertification(p,a)
638 #else
639 /*** IUnknown methods ***/
640 #define IDirectSound8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
641 #define IDirectSound8_AddRef(p) (p)->AddRef()
642 #define IDirectSound8_Release(p) (p)->Release()
643 /*** IDirectSound methods ***/
644 #define IDirectSound8_CreateSoundBuffer(p,a,b,c) (p)->CreateSoundBuffer(a,b,c)
645 #define IDirectSound8_GetCaps(p,a) (p)->GetCaps(a)
646 #define IDirectSound8_DuplicateSoundBuffer(p,a,b) (p)->DuplicateSoundBuffer(a,b)
647 #define IDirectSound8_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
648 #define IDirectSound8_Compact(p) (p)->Compact()
649 #define IDirectSound8_GetSpeakerConfig(p,a) (p)->GetSpeakerConfig(a)
650 #define IDirectSound8_SetSpeakerConfig(p,a) (p)->SetSpeakerConfig(a)
651 #define IDirectSound8_Initialize(p,a) (p)->Initialize(a)
652 /*** IDirectSound8 methods ***/
653 #define IDirectSound8_VerifyCertification(p,a) (p)->VerifyCertification(a)
654 #endif
657 /*****************************************************************************
658 * IDirectSoundBuffer interface
660 #define INTERFACE IDirectSoundBuffer
661 DECLARE_INTERFACE_(IDirectSoundBuffer,IUnknown)
663 /*** IUnknown methods ***/
664 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
665 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
666 STDMETHOD_(ULONG,Release)(THIS) PURE;
667 /*** IDirectSoundBuffer methods ***/
668 STDMETHOD(GetCaps)(THIS_ LPDSBCAPS lpDSBufferCaps) PURE;
669 STDMETHOD(GetCurrentPosition)(THIS_ LPDWORD lpdwCurrentPlayCursor, LPDWORD lpdwCurrentWriteCursor) PURE;
670 STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX lpwfxFormat, DWORD dwSizeAllocated, LPDWORD lpdwSizeWritten) PURE;
671 STDMETHOD(GetVolume)(THIS_ LPLONG lplVolume) PURE;
672 STDMETHOD(GetPan)(THIS_ LPLONG lplpan) PURE;
673 STDMETHOD(GetFrequency)(THIS_ LPDWORD lpdwFrequency) PURE;
674 STDMETHOD(GetStatus)(THIS_ LPDWORD lpdwStatus) PURE;
675 STDMETHOD(Initialize)(THIS_ LPDIRECTSOUND lpDirectSound, LPCDSBUFFERDESC lpcDSBufferDesc) PURE;
676 STDMETHOD(Lock)(THIS_ DWORD dwOffset, DWORD dwBytes, LPVOID *ppvAudioPtr1, LPDWORD pdwAudioBytes1, LPVOID *ppvAudioPtr2, LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE;
677 STDMETHOD(Play)(THIS_ DWORD dwReserved1, DWORD dwReserved2, DWORD dwFlags) PURE;
678 STDMETHOD(SetCurrentPosition)(THIS_ DWORD dwNewPosition) PURE;
679 STDMETHOD(SetFormat)(THIS_ LPCWAVEFORMATEX lpcfxFormat) PURE;
680 STDMETHOD(SetVolume)(THIS_ LONG lVolume) PURE;
681 STDMETHOD(SetPan)(THIS_ LONG lPan) PURE;
682 STDMETHOD(SetFrequency)(THIS_ DWORD dwFrequency) PURE;
683 STDMETHOD(Stop)(THIS) PURE;
684 STDMETHOD(Unlock)(THIS_ LPVOID pvAudioPtr1, DWORD dwAudioBytes1, LPVOID pvAudioPtr2, DWORD dwAudioPtr2) PURE;
685 STDMETHOD(Restore)(THIS) PURE;
687 #undef INTERFACE
689 #if !defined(__cplusplus) || defined(CINTERFACE)
690 /*** IUnknown methods ***/
691 #define IDirectSoundBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
692 #define IDirectSoundBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
693 #define IDirectSoundBuffer_Release(p) (p)->lpVtbl->Release(p)
694 /*** IDirectSoundBuffer methods ***/
695 #define IDirectSoundBuffer_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
696 #define IDirectSoundBuffer_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b)
697 #define IDirectSoundBuffer_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c)
698 #define IDirectSoundBuffer_GetVolume(p,a) (p)->lpVtbl->GetVolume(p,a)
699 #define IDirectSoundBuffer_GetPan(p,a) (p)->lpVtbl->GetPan(p,a)
700 #define IDirectSoundBuffer_GetFrequency(p,a) (p)->lpVtbl->GetFrequency(p,a)
701 #define IDirectSoundBuffer_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a)
702 #define IDirectSoundBuffer_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
703 #define IDirectSoundBuffer_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g)
704 #define IDirectSoundBuffer_Play(p,a,b,c) (p)->lpVtbl->Play(p,a,b,c)
705 #define IDirectSoundBuffer_SetCurrentPosition(p,a) (p)->lpVtbl->SetCurrentPosition(p,a)
706 #define IDirectSoundBuffer_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a)
707 #define IDirectSoundBuffer_SetVolume(p,a) (p)->lpVtbl->SetVolume(p,a)
708 #define IDirectSoundBuffer_SetPan(p,a) (p)->lpVtbl->SetPan(p,a)
709 #define IDirectSoundBuffer_SetFrequency(p,a) (p)->lpVtbl->SetFrequency(p,a)
710 #define IDirectSoundBuffer_Stop(p) (p)->lpVtbl->Stop(p)
711 #define IDirectSoundBuffer_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d)
712 #define IDirectSoundBuffer_Restore(p) (p)->lpVtbl->Restore(p)
713 #else
714 /*** IUnknown methods ***/
715 #define IDirectSoundBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
716 #define IDirectSoundBuffer_AddRef(p) (p)->AddRef()
717 #define IDirectSoundBuffer_Release(p) (p)->Release()
718 /*** IDirectSoundBuffer methods ***/
719 #define IDirectSoundBuffer_GetCaps(p,a) (p)->GetCaps(a)
720 #define IDirectSoundBuffer_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b)
721 #define IDirectSoundBuffer_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c)
722 #define IDirectSoundBuffer_GetVolume(p,a) (p)->GetVolume(a)
723 #define IDirectSoundBuffer_GetPan(p,a) (p)->GetPan(a)
724 #define IDirectSoundBuffer_GetFrequency(p,a) (p)->GetFrequency(a)
725 #define IDirectSoundBuffer_GetStatus(p,a) (p)->GetStatus(a)
726 #define IDirectSoundBuffer_Initialize(p,a,b) (p)->Initialize(a,b)
727 #define IDirectSoundBuffer_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g)
728 #define IDirectSoundBuffer_Play(p,a,b,c) (p)->Play(a,b,c)
729 #define IDirectSoundBuffer_SetCurrentPosition(p,a) (p)->SetCurrentPosition(a)
730 #define IDirectSoundBuffer_SetFormat(p,a) (p)->SetFormat(a)
731 #define IDirectSoundBuffer_SetVolume(p,a) (p)->SetVolume(a)
732 #define IDirectSoundBuffer_SetPan(p,a) (p)->SetPan(a)
733 #define IDirectSoundBuffer_SetFrequency(p,a) (p)->SetFrequency(a)
734 #define IDirectSoundBuffer_Stop(p) (p)->Stop()
735 #define IDirectSoundBuffer_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d)
736 #define IDirectSoundBuffer_Restore(p) (p)->Restore()
737 #endif
740 /*****************************************************************************
741 * IDirectSoundBuffer8 interface
743 #define INTERFACE IDirectSoundBuffer8
744 DECLARE_INTERFACE_(IDirectSoundBuffer8,IUnknown)
746 /*** IUnknown methods ***/
747 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
748 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
749 STDMETHOD_(ULONG,Release)(THIS) PURE;
750 /*** IDirectSoundBuffer8 methods ***/
751 STDMETHOD(GetCaps)(THIS_ LPDSBCAPS lpDSBufferCaps) PURE;
752 STDMETHOD(GetCurrentPosition)(THIS_ LPDWORD lpdwCurrentPlayCursor, LPDWORD lpdwCurrentWriteCursor) PURE;
753 STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX lpwfxFormat, DWORD dwSizeAllocated, LPDWORD lpdwSizeWritten) PURE;
754 STDMETHOD(GetVolume)(THIS_ LPLONG lplVolume) PURE;
755 STDMETHOD(GetPan)(THIS_ LPLONG lplpan) PURE;
756 STDMETHOD(GetFrequency)(THIS_ LPDWORD lpdwFrequency) PURE;
757 STDMETHOD(GetStatus)(THIS_ LPDWORD lpdwStatus) PURE;
758 STDMETHOD(Initialize)(THIS_ LPDIRECTSOUND lpDirectSound, LPCDSBUFFERDESC lpcDSBufferDesc) PURE;
759 STDMETHOD(Lock)(THIS_ DWORD dwOffset, DWORD dwBytes, LPVOID *ppvAudioPtr1, LPDWORD pdwAudioBytes1, LPVOID *ppvAudioPtr2, LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE;
760 STDMETHOD(Play)(THIS_ DWORD dwReserved1, DWORD dwReserved2, DWORD dwFlags) PURE;
761 STDMETHOD(SetCurrentPosition)(THIS_ DWORD dwNewPosition) PURE;
762 STDMETHOD(SetFormat)(THIS_ LPCWAVEFORMATEX lpcfxFormat) PURE;
763 STDMETHOD(SetVolume)(THIS_ LONG lVolume) PURE;
764 STDMETHOD(SetPan)(THIS_ LONG lPan) PURE;
765 STDMETHOD(SetFrequency)(THIS_ DWORD dwFrequency) PURE;
766 STDMETHOD(Stop)(THIS) PURE;
767 STDMETHOD(Unlock)(THIS_ LPVOID pvAudioPtr1, DWORD dwAudioBytes1, LPVOID pvAudioPtr2, DWORD dwAudioPtr2) PURE;
768 STDMETHOD(Restore)(THIS) PURE;
769 STDMETHOD(SetFX)(THIS_ DWORD dwEffectsCount, LPDSEFFECTDESC pDSFXDesc, LPDWORD pdwResultCodes) PURE;
770 STDMETHOD(AcquireResources)(THIS_ DWORD dwFlags, DWORD dwEffectsCount, LPDWORD pdwResultCodes) PURE;
771 STDMETHOD(GetObjectInPath)(THIS_ REFGUID rguidObject, DWORD dwIndex, REFGUID rguidInterface, LPVOID *ppObject) PURE;
773 #undef INTERFACE
775 DEFINE_GUID(GUID_All_Objects, 0xaa114de5, 0xc262, 0x4169, 0xa1, 0xc8, 0x23, 0xd6, 0x98, 0xcc, 0x73, 0xb5);
777 #if !defined(__cplusplus) || defined(CINTERFACE)
778 /*** IUnknown methods ***/
779 #define IDirectSoundBuffer8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
780 #define IDirectSoundBuffer8_AddRef(p) (p)->lpVtbl->AddRef(p)
781 #define IDirectSoundBuffer8_Release(p) (p)->lpVtbl->Release(p)
782 /*** IDirectSoundBuffer methods ***/
783 #define IDirectSoundBuffer8_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
784 #define IDirectSoundBuffer8_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b)
785 #define IDirectSoundBuffer8_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c)
786 #define IDirectSoundBuffer8_GetVolume(p,a) (p)->lpVtbl->GetVolume(p,a)
787 #define IDirectSoundBuffer8_GetPan(p,a) (p)->lpVtbl->GetPan(p,a)
788 #define IDirectSoundBuffer8_GetFrequency(p,a) (p)->lpVtbl->GetFrequency(p,a)
789 #define IDirectSoundBuffer8_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a)
790 #define IDirectSoundBuffer8_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
791 #define IDirectSoundBuffer8_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g)
792 #define IDirectSoundBuffer8_Play(p,a,b,c) (p)->lpVtbl->Play(p,a,b,c)
793 #define IDirectSoundBuffer8_SetCurrentPosition(p,a) (p)->lpVtbl->SetCurrentPosition(p,a)
794 #define IDirectSoundBuffer8_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a)
795 #define IDirectSoundBuffer8_SetVolume(p,a) (p)->lpVtbl->SetVolume(p,a)
796 #define IDirectSoundBuffer8_SetPan(p,a) (p)->lpVtbl->SetPan(p,a)
797 #define IDirectSoundBuffer8_SetFrequency(p,a) (p)->lpVtbl->SetFrequency(p,a)
798 #define IDirectSoundBuffer8_Stop(p) (p)->lpVtbl->Stop(p)
799 #define IDirectSoundBuffer8_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d)
800 #define IDirectSoundBuffer8_Restore(p) (p)->lpVtbl->Restore(p)
801 /*** IDirectSoundBuffer8 methods ***/
802 #define IDirectSoundBuffer8_SetFX(p,a,b,c) (p)->lpVtbl->SetFX(p,a,b,c)
803 #define IDirectSoundBuffer8_AcquireResources(p,a,b,c) (p)->lpVtbl->AcquireResources(p,a,b,c)
804 #define IDirectSoundBuffer8_GetObjectInPath(p,a,b,c,d) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d)
805 #else
806 /*** IUnknown methods ***/
807 #define IDirectSoundBuffer8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
808 #define IDirectSoundBuffer8_AddRef(p) (p)->AddRef()
809 #define IDirectSoundBuffer8_Release(p) (p)->Release()
810 /*** IDirectSoundBuffer methods ***/
811 #define IDirectSoundBuffer8_GetCaps(p,a) (p)->GetCaps(a)
812 #define IDirectSoundBuffer8_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b)
813 #define IDirectSoundBuffer8_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c)
814 #define IDirectSoundBuffer8_GetVolume(p,a) (p)->GetVolume(a)
815 #define IDirectSoundBuffer8_GetPan(p,a) (p)->GetPan(a)
816 #define IDirectSoundBuffer8_GetFrequency(p,a) (p)->GetFrequency(a)
817 #define IDirectSoundBuffer8_GetStatus(p,a) (p)->GetStatus(a)
818 #define IDirectSoundBuffer8_Initialize(p,a,b) (p)->Initialize(a,b)
819 #define IDirectSoundBuffer8_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g)
820 #define IDirectSoundBuffer8_Play(p,a,b,c) (p)->Play(a,b,c)
821 #define IDirectSoundBuffer8_SetCurrentPosition(p,a) (p)->SetCurrentPosition(a)
822 #define IDirectSoundBuffer8_SetFormat(p,a) (p)->SetFormat(a)
823 #define IDirectSoundBuffer8_SetVolume(p,a) (p)->SetVolume(a)
824 #define IDirectSoundBuffer8_SetPan(p,a) (p)->SetPan(a)
825 #define IDirectSoundBuffer8_SetFrequency(p,a) (p)->SetFrequency(a)
826 #define IDirectSoundBuffer8_Stop(p) (p)->Stop()
827 #define IDirectSoundBuffer8_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d)
828 #define IDirectSoundBuffer8_Restore(p) (p)->Restore()
829 /*** IDirectSoundBuffer8 methods ***/
830 #define IDirectSoundBuffer8_SetFX(p,a,b,c) (p)->SetFX(a,b,c)
831 #define IDirectSoundBuffer8_AcquireResources(p,a,b,c) (p)->AcquireResources(a,b,c)
832 #define IDirectSoundBuffer8_GetObjectInPath(p,a,b,c,d) (p)->GetObjectInPath(a,b,c,d)
833 #endif
836 /*****************************************************************************
837 * IDirectSoundCapture interface
839 #define INTERFACE IDirectSoundCapture
840 DECLARE_INTERFACE_(IDirectSoundCapture,IUnknown)
842 /*** IUnknown methods ***/
843 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
844 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
845 STDMETHOD_(ULONG,Release)(THIS) PURE;
846 /*** IDirectSoundCapture methods ***/
847 STDMETHOD(CreateCaptureBuffer)(THIS_ LPCDSCBUFFERDESC lpcDSCBufferDesc,LPDIRECTSOUNDCAPTUREBUFFER *lplpDSCaptureBuffer, LPUNKNOWN pUnk) PURE;
848 STDMETHOD(GetCaps)(THIS_ LPDSCCAPS lpDSCCaps) PURE;
849 STDMETHOD(Initialize)(THIS_ LPCGUID lpcGUID) PURE;
851 #undef INTERFACE
853 #if !defined(__cplusplus) || defined(CINTERFACE)
854 /*** IUnknown methods ***/
855 #define IDirectSoundCapture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
856 #define IDirectSoundCapture_AddRef(p) (p)->lpVtbl->AddRef(p)
857 #define IDirectSoundCapture_Release(p) (p)->lpVtbl->Release(p)
858 /*** IDirectSoundCapture methods ***/
859 #define IDirectSoundCapture_CreateCaptureBuffer(p,a,b,c) (p)->lpVtbl->CreateCaptureBuffer(p,a,b,c)
860 #define IDirectSoundCapture_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
861 #define IDirectSoundCapture_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
862 #else
863 /*** IUnknown methods ***/
864 #define IDirectSoundCapture_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
865 #define IDirectSoundCapture_AddRef(p) (p)->AddRef()
866 #define IDirectSoundCapture_Release(p) (p)->Release()
867 /*** IDirectSoundCapture methods ***/
868 #define IDirectSoundCapture_CreateCaptureBuffer(p,a,b,c) (p)->CreateCaptureBuffer(a,b,c)
869 #define IDirectSoundCapture_GetCaps(p,a) (p)->GetCaps(a)
870 #define IDirectSoundCapture_Initialize(p,a) (p)->Initialize(a)
871 #endif
873 /*****************************************************************************
874 * IDirectSoundCaptureBuffer interface
876 #define INTERFACE IDirectSoundCaptureBuffer
877 DECLARE_INTERFACE_(IDirectSoundCaptureBuffer,IUnknown)
879 /*** IUnknown methods ***/
880 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
881 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
882 STDMETHOD_(ULONG,Release)(THIS) PURE;
883 /*** IDirectSoundCaptureBuffer methods ***/
884 STDMETHOD(GetCaps)(THIS_ LPDSCBCAPS lpDSCBCaps) PURE;
885 STDMETHOD(GetCurrentPosition)(THIS_ LPDWORD lpdwCapturePosition,LPDWORD lpdwReadPosition) PURE;
886 STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX lpwfxFormat, DWORD dwSizeAllocated, LPDWORD lpdwSizeWritten) PURE;
887 STDMETHOD(GetStatus)(THIS_ LPDWORD lpdwStatus) PURE;
888 STDMETHOD(Initialize)(THIS_ LPDIRECTSOUNDCAPTURE lpDSC, LPCDSCBUFFERDESC lpcDSCBDesc) PURE;
889 STDMETHOD(Lock)(THIS_ DWORD dwReadCusor, DWORD dwReadBytes, LPVOID *lplpvAudioPtr1, LPDWORD lpdwAudioBytes1, LPVOID *lplpvAudioPtr2, LPDWORD lpdwAudioBytes2, DWORD dwFlags) PURE;
890 STDMETHOD(Start)(THIS_ DWORD dwFlags) PURE;
891 STDMETHOD(Stop)(THIS) PURE;
892 STDMETHOD(Unlock)(THIS_ LPVOID lpvAudioPtr1, DWORD dwAudioBytes1, LPVOID lpvAudioPtr2, DWORD dwAudioBytes2) PURE;
894 #undef INTERFACE
896 #if !defined(__cplusplus) || defined(CINTERFACE)
897 /*** IUnknown methods ***/
898 #define IDirectSoundCaptureBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
899 #define IDirectSoundCaptureBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
900 #define IDirectSoundCaptureBuffer_Release(p) (p)->lpVtbl->Release(p)
901 /*** IDirectSoundCaptureBuffer methods ***/
902 #define IDirectSoundCaptureBuffer_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
903 #define IDirectSoundCaptureBuffer_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b)
904 #define IDirectSoundCaptureBuffer_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c)
905 #define IDirectSoundCaptureBuffer_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a)
906 #define IDirectSoundCaptureBuffer_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
907 #define IDirectSoundCaptureBuffer_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g)
908 #define IDirectSoundCaptureBuffer_Start(p,a) (p)->lpVtbl->Start(p,a)
909 #define IDirectSoundCaptureBuffer_Stop(p) (p)->lpVtbl->Stop(p)
910 #define IDirectSoundCaptureBuffer_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d)
911 #else
912 /*** IUnknown methods ***/
913 #define IDirectSoundCaptureBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
914 #define IDirectSoundCaptureBuffer_AddRef(p) (p)->AddRef()
915 #define IDirectSoundCaptureBuffer_Release(p) (p)->Release()
916 /*** IDirectSoundCaptureBuffer methods ***/
917 #define IDirectSoundCaptureBuffer_GetCaps(p,a) (p)->GetCaps(a)
918 #define IDirectSoundCaptureBuffer_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b)
919 #define IDirectSoundCaptureBuffer_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c)
920 #define IDirectSoundCaptureBuffer_GetStatus(p,a) (p)->GetStatus(a)
921 #define IDirectSoundCaptureBuffer_Initialize(p,a,b) (p)->Initialize(a,b)
922 #define IDirectSoundCaptureBuffer_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g)
923 #define IDirectSoundCaptureBuffer_Start(p,a) (p)->Start(a)
924 #define IDirectSoundCaptureBuffer_Stop(p) (p)->Stop()
925 #define IDirectSoundCaptureBuffer_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d)
926 #endif
928 /*****************************************************************************
929 * IDirectSoundCaptureBuffer8 interface
931 #define INTERFACE IDirectSoundCaptureBuffer8
932 DECLARE_INTERFACE_(IDirectSoundCaptureBuffer8,IDirectSoundCaptureBuffer)
934 /*** IUnknown methods ***/
935 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
936 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
937 STDMETHOD_(ULONG,Release)(THIS) PURE;
938 /*** IDirectSoundCaptureBuffer methods ***/
939 STDMETHOD(GetCaps)(THIS_ LPDSCBCAPS lpDSCBCaps) PURE;
940 STDMETHOD(GetCurrentPosition)(THIS_ LPDWORD lpdwCapturePosition,LPDWORD lpdwReadPosition) PURE;
941 STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX lpwfxFormat, DWORD dwSizeAllocated, LPDWORD lpdwSizeWritten) PURE;
942 STDMETHOD(GetStatus)(THIS_ LPDWORD lpdwStatus) PURE;
943 STDMETHOD(Initialize)(THIS_ LPDIRECTSOUNDCAPTURE lpDSC, LPCDSCBUFFERDESC lpcDSCBDesc) PURE;
944 STDMETHOD(Lock)(THIS_ DWORD dwReadCusor, DWORD dwReadBytes, LPVOID *lplpvAudioPtr1, LPDWORD lpdwAudioBytes1, LPVOID *lplpvAudioPtr2, LPDWORD lpdwAudioBytes2, DWORD dwFlags) PURE;
945 STDMETHOD(Start)(THIS_ DWORD dwFlags) PURE;
946 STDMETHOD(Stop)(THIS) PURE;
947 STDMETHOD(Unlock)(THIS_ LPVOID lpvAudioPtr1, DWORD dwAudioBytes1, LPVOID lpvAudioPtr2, DWORD dwAudioBytes2) PURE;
948 /*** IDirectSoundCaptureBuffer8 methods ***/
949 STDMETHOD(GetObjectInPath)(THIS_ REFGUID rguidObject, DWORD dwIndex, REFGUID rguidInterface, LPVOID *ppObject) PURE;
950 STDMETHOD(GetFXStatus)(THIS_ DWORD dwFXCount, LPDWORD pdwFXStatus) PURE;
952 #undef INTERFACE
954 #if !defined(__cplusplus) || defined(CINTERFACE)
955 /*** IUnknown methods ***/
956 #define IDirectSoundCaptureBuffer8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
957 #define IDirectSoundCaptureBuffer8_AddRef(p) (p)->lpVtbl->AddRef(p)
958 #define IDirectSoundCaptureBuffer8_Release(p) (p)->lpVtbl->Release(p)
959 /*** IDirectSoundCaptureBuffer methods ***/
960 #define IDirectSoundCaptureBuffer8_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
961 #define IDirectSoundCaptureBuffer8_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b)
962 #define IDirectSoundCaptureBuffer8_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c)
963 #define IDirectSoundCaptureBuffer8_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a)
964 #define IDirectSoundCaptureBuffer8_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
965 #define IDirectSoundCaptureBuffer8_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g)
966 #define IDirectSoundCaptureBuffer8_Start(p,a) (p)->lpVtbl->Start(p,a)
967 #define IDirectSoundCaptureBuffer8_Stop(p) (p)->lpVtbl->Stop(p)
968 #define IDirectSoundCaptureBuffer8_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d)
969 /*** IDirectSoundCaptureBuffer8 methods ***/
970 #define IDirectSoundCaptureBuffer8_GetObjectInPath(p,a,b,c,d) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d)
971 #define IDirectSoundCaptureBuffer8_GetFXStatus(p,a,b) (p)->lpVtbl->GetFXStatus(p,a,b)
972 #else
973 /*** IUnknown methods ***/
974 #define IDirectSoundCaptureBuffer8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
975 #define IDirectSoundCaptureBuffer8_AddRef(p) (p)->AddRef()
976 #define IDirectSoundCaptureBuffer8_Release(p) (p)->Release()
977 /*** IDirectSoundCaptureBuffer methods ***/
978 #define IDirectSoundCaptureBuffer8_GetCaps(p,a) (p)->GetCaps(a)
979 #define IDirectSoundCaptureBuffer8_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b)
980 #define IDirectSoundCaptureBuffer8_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c)
981 #define IDirectSoundCaptureBuffer8_GetStatus(p,a) (p)->GetStatus(a)
982 #define IDirectSoundCaptureBuffer8_Initialize(p,a,b) (p)->Initialize(a,b)
983 #define IDirectSoundCaptureBuffer8_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g)
984 #define IDirectSoundCaptureBuffer8_Start(p,a) (p)->Start(a)
985 #define IDirectSoundCaptureBuffer8_Stop(p) (p)->Stop()
986 #define IDirectSoundCaptureBuffer8_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d)
987 /*** IDirectSoundCaptureBuffer8 methods ***/
988 #define IDirectSoundCaptureBuffer8_GetObjectInPath(p,a,b,c,d) (p)->GetObjectInPath(a,b,c,d)
989 #define IDirectSoundCaptureBuffer8_GetFXStatus(p,a,b) (p)->GetFXStatus(a,b)
990 #endif
992 /*****************************************************************************
993 * IDirectSoundNotify interface
995 #define WINE_NOBUFFER 0x80000000
997 #define DSBPN_OFFSETSTOP -1
999 #define INTERFACE IDirectSoundNotify
1000 DECLARE_INTERFACE_(IDirectSoundNotify,IUnknown)
1002 /*** IUnknown methods ***/
1003 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1004 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1005 STDMETHOD_(ULONG,Release)(THIS) PURE;
1006 /*** IDirectSoundNotify methods ***/
1007 STDMETHOD(SetNotificationPositions)(THIS_ DWORD cPositionNotifies, LPCDSBPOSITIONNOTIFY lpcPositionNotifies) PURE;
1009 #undef INTERFACE
1011 #if !defined(__cplusplus) || defined(CINTERFACE)
1012 /*** IUnknown methods ***/
1013 #define IDirectSoundNotify_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1014 #define IDirectSoundNotify_AddRef(p) (p)->lpVtbl->AddRef(p)
1015 #define IDirectSoundNotify_Release(p) (p)->lpVtbl->Release(p)
1016 /*** IDirectSoundNotify methods ***/
1017 #define IDirectSoundNotify_SetNotificationPositions(p,a,b) (p)->lpVtbl->SetNotificationPositions(p,a,b)
1018 #else
1019 /*** IUnknown methods ***/
1020 #define IDirectSoundNotify_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1021 #define IDirectSoundNotify_AddRef(p) (p)->AddRef()
1022 #define IDirectSoundNotify_Release(p) (p)->Release()
1023 /*** IDirectSoundNotify methods ***/
1024 #define IDirectSoundNotify_SetNotificationPositions(p,a,b) (p)->SetNotificationPositions(a,b)
1025 #endif
1028 /*****************************************************************************
1029 * IDirectSound3DListener interface
1031 #define DS3DMODE_NORMAL 0x00000000
1032 #define DS3DMODE_HEADRELATIVE 0x00000001
1033 #define DS3DMODE_DISABLE 0x00000002
1035 #define DS3D_IMMEDIATE 0x00000000
1036 #define DS3D_DEFERRED 0x00000001
1038 #define DS3D_MINDISTANCEFACTOR FLT_MIN
1039 #define DS3D_MAXDISTANCEFACTOR FLT_MAX
1040 #define DS3D_DEFAULTDISTANCEFACTOR 1.0f
1042 #define DS3D_MINROLLOFFFACTOR 0.0f
1043 #define DS3D_MAXROLLOFFFACTOR 10.0f
1044 #define DS3D_DEFAULTROLLOFFFACTOR 1.0f
1046 #define DS3D_MINDOPPLERFACTOR 0.0f
1047 #define DS3D_MAXDOPPLERFACTOR 10.0f
1048 #define DS3D_DEFAULTDOPPLERFACTOR 1.0f
1050 #define DS3D_DEFAULTMINDISTANCE 1.0f
1051 #define DS3D_DEFAULTMAXDISTANCE 1000000000.0f
1053 #define DS3D_MINCONEANGLE 0
1054 #define DS3D_MAXCONEANGLE 360
1055 #define DS3D_DEFAULTCONEANGLE 360
1057 #define DS3D_DEFAULTCONEOUTSIDEVOLUME DSBVOLUME_MAX
1059 typedef struct _DS3DLISTENER {
1060 DWORD dwSize;
1061 D3DVECTOR vPosition;
1062 D3DVECTOR vVelocity;
1063 D3DVECTOR vOrientFront;
1064 D3DVECTOR vOrientTop;
1065 D3DVALUE flDistanceFactor;
1066 D3DVALUE flRolloffFactor;
1067 D3DVALUE flDopplerFactor;
1068 } DS3DLISTENER, *LPDS3DLISTENER;
1070 typedef const DS3DLISTENER *LPCDS3DLISTENER;
1072 #define INTERFACE IDirectSound3DListener
1073 DECLARE_INTERFACE_(IDirectSound3DListener,IUnknown)
1075 /*** IUnknown methods ***/
1076 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1077 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1078 STDMETHOD_(ULONG,Release)(THIS) PURE;
1079 /*** IDirectSound3DListener methods ***/
1080 STDMETHOD(GetAllParameters)(THIS_ LPDS3DLISTENER lpListener) PURE;
1081 STDMETHOD(GetDistanceFactor)(THIS_ LPD3DVALUE lpflDistanceFactor) PURE;
1082 STDMETHOD(GetDopplerFactor)(THIS_ LPD3DVALUE lpflDopplerFactor) PURE;
1083 STDMETHOD(GetOrientation)(THIS_ LPD3DVECTOR lpvOrientFront, LPD3DVECTOR lpvOrientTop) PURE;
1084 STDMETHOD(GetPosition)(THIS_ LPD3DVECTOR lpvPosition) PURE;
1085 STDMETHOD(GetRolloffFactor)(THIS_ LPD3DVALUE lpflRolloffFactor) PURE;
1086 STDMETHOD(GetVelocity)(THIS_ LPD3DVECTOR lpvVelocity) PURE;
1087 STDMETHOD(SetAllParameters)(THIS_ LPCDS3DLISTENER lpcListener, DWORD dwApply) PURE;
1088 STDMETHOD(SetDistanceFactor)(THIS_ D3DVALUE flDistanceFactor, DWORD dwApply) PURE;
1089 STDMETHOD(SetDopplerFactor)(THIS_ D3DVALUE flDopplerFactor, DWORD dwApply) PURE;
1090 STDMETHOD(SetOrientation)(THIS_ D3DVALUE xFront, D3DVALUE yFront, D3DVALUE zFront, D3DVALUE xTop, D3DVALUE yTop, D3DVALUE zTop, DWORD dwApply) PURE;
1091 STDMETHOD(SetPosition)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE;
1092 STDMETHOD(SetRolloffFactor)(THIS_ D3DVALUE flRolloffFactor, DWORD dwApply) PURE;
1093 STDMETHOD(SetVelocity)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE;
1094 STDMETHOD(CommitDeferredSettings)(THIS) PURE;
1096 #undef INTERFACE
1098 #if !defined(__cplusplus) || defined(CINTERFACE)
1099 /*** IUnknown methods ***/
1100 #define IDirectSound3DListener_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1101 #define IDirectSound3DListener_AddRef(p) (p)->lpVtbl->AddRef(p)
1102 #define IDirectSound3DListener_Release(p) (p)->lpVtbl->Release(p)
1103 /*** IDirectSound3DListener methods ***/
1104 #define IDirectSound3DListener_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
1105 #define IDirectSound3DListener_GetDistanceFactor(p,a) (p)->lpVtbl->GetDistanceFactor(p,a)
1106 #define IDirectSound3DListener_GetDopplerFactor(p,a) (p)->lpVtbl->GetDopplerFactor(p,a)
1107 #define IDirectSound3DListener_GetOrientation(p,a,b) (p)->lpVtbl->GetOrientation(p,a,b)
1108 #define IDirectSound3DListener_GetPosition(p,a) (p)->lpVtbl->GetPosition(p,a)
1109 #define IDirectSound3DListener_GetRolloffFactor(p,a) (p)->lpVtbl->GetRolloffFactor(p,a)
1110 #define IDirectSound3DListener_GetVelocity(p,a) (p)->lpVtbl->GetVelocity(p,a)
1111 #define IDirectSound3DListener_SetAllParameters(p,a,b) (p)->lpVtbl->SetAllParameters(p,a,b)
1112 #define IDirectSound3DListener_SetDistanceFactor(p,a,b) (p)->lpVtbl->SetDistanceFactor(p,a,b)
1113 #define IDirectSound3DListener_SetDopplerFactor(p,a,b) (p)->lpVtbl->SetDopplerFactor(p,a,b)
1114 #define IDirectSound3DListener_SetOrientation(p,a,b,c,d,e,f,g) (p)->lpVtbl->SetOrientation(p,a,b,c,d,e,f,g)
1115 #define IDirectSound3DListener_SetPosition(p,a,b,c,d) (p)->lpVtbl->SetPosition(p,a,b,c,d)
1116 #define IDirectSound3DListener_SetRolloffFactor(p,a,b) (p)->lpVtbl->SetRolloffFactor(p,a,b)
1117 #define IDirectSound3DListener_SetVelocity(p,a,b,c,d) (p)->lpVtbl->SetVelocity(p,a,b,c,d)
1118 #define IDirectSound3DListener_CommitDeferredSettings(p) (p)->lpVtbl->CommitDeferredSettings(p)
1119 #else
1120 /*** IUnknown methods ***/
1121 #define IDirectSound3DListener_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1122 #define IDirectSound3DListener_AddRef(p) (p)->AddRef()
1123 #define IDirectSound3DListener_Release(p) (p)->Release()
1124 /*** IDirectSound3DListener methods ***/
1125 #define IDirectSound3DListener_GetAllParameters(p,a) (p)->GetAllParameters(a)
1126 #define IDirectSound3DListener_GetDistanceFactor(p,a) (p)->GetDistanceFactor(a)
1127 #define IDirectSound3DListener_GetDopplerFactor(p,a) (p)->GetDopplerFactor(a)
1128 #define IDirectSound3DListener_GetOrientation(p,a,b) (p)->GetOrientation(a,b)
1129 #define IDirectSound3DListener_GetPosition(p,a) (p)->GetPosition(a)
1130 #define IDirectSound3DListener_GetRolloffFactor(p,a) (p)->GetRolloffFactor(a)
1131 #define IDirectSound3DListener_GetVelocity(p,a) (p)->GetVelocity(a)
1132 #define IDirectSound3DListener_SetAllParameters(p,a,b) (p)->SetAllParameters(a,b)
1133 #define IDirectSound3DListener_SetDistanceFactor(p,a,b) (p)->SetDistanceFactor(a,b)
1134 #define IDirectSound3DListener_SetDopplerFactor(p,a,b) (p)->SetDopplerFactor(a,b)
1135 #define IDirectSound3DListener_SetOrientation(p,a,b,c,d,e,f,g) (p)->SetOrientation(a,b,c,d,e,f,g)
1136 #define IDirectSound3DListener_SetPosition(p,a,b,c,d) (p)->SetPosition(a,b,c,d)
1137 #define IDirectSound3DListener_SetRolloffFactor(p,a,b) (p)->SetRolloffFactor(a,b)
1138 #define IDirectSound3DListener_SetVelocity(p,a,b,c,d) (p)->SetVelocity(a,b,c,d)
1139 #define IDirectSound3DListener_CommitDeferredSettings(p) (p)->CommitDeferredSettings()
1140 #endif
1143 /*****************************************************************************
1144 * IDirectSound3DBuffer interface
1146 typedef struct _DS3DBUFFER {
1147 DWORD dwSize;
1148 D3DVECTOR vPosition;
1149 D3DVECTOR vVelocity;
1150 DWORD dwInsideConeAngle;
1151 DWORD dwOutsideConeAngle;
1152 D3DVECTOR vConeOrientation;
1153 LONG lConeOutsideVolume;
1154 D3DVALUE flMinDistance;
1155 D3DVALUE flMaxDistance;
1156 DWORD dwMode;
1157 } DS3DBUFFER, *LPDS3DBUFFER;
1159 typedef const DS3DBUFFER *LPCDS3DBUFFER;
1161 #define INTERFACE IDirectSound3DBuffer
1162 DECLARE_INTERFACE_(IDirectSound3DBuffer,IUnknown)
1164 /*** IUnknown methods ***/
1165 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1166 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1167 STDMETHOD_(ULONG,Release)(THIS) PURE;
1168 /*** IDirectSound3DBuffer methods ***/
1169 STDMETHOD(GetAllParameters)(THIS_ LPDS3DBUFFER lpDs3dBuffer) PURE;
1170 STDMETHOD(GetConeAngles)(THIS_ LPDWORD lpdwInsideConeAngle, LPDWORD lpdwOutsideConeAngle) PURE;
1171 STDMETHOD(GetConeOrientation)(THIS_ LPD3DVECTOR lpvOrientation) PURE;
1172 STDMETHOD(GetConeOutsideVolume)(THIS_ LPLONG lplConeOutsideVolume) PURE;
1173 STDMETHOD(GetMaxDistance)(THIS_ LPD3DVALUE lpflMaxDistance) PURE;
1174 STDMETHOD(GetMinDistance)(THIS_ LPD3DVALUE lpflMinDistance) PURE;
1175 STDMETHOD(GetMode)(THIS_ LPDWORD lpwdMode) PURE;
1176 STDMETHOD(GetPosition)(THIS_ LPD3DVECTOR lpvPosition) PURE;
1177 STDMETHOD(GetVelocity)(THIS_ LPD3DVECTOR lpvVelocity) PURE;
1178 STDMETHOD(SetAllParameters)(THIS_ LPCDS3DBUFFER lpcDs3dBuffer, DWORD dwApply) PURE;
1179 STDMETHOD(SetConeAngles)(THIS_ DWORD dwInsideConeAngle, DWORD dwOutsideConeAngle, DWORD dwApply) PURE;
1180 STDMETHOD(SetConeOrientation)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE;
1181 STDMETHOD(SetConeOutsideVolume)(THIS_ LONG lConeOutsideVolume, DWORD dwApply) PURE;
1182 STDMETHOD(SetMaxDistance)(THIS_ D3DVALUE flMaxDistance, DWORD dwApply) PURE;
1183 STDMETHOD(SetMinDistance)(THIS_ D3DVALUE flMinDistance, DWORD dwApply) PURE;
1184 STDMETHOD(SetMode)(THIS_ DWORD dwMode, DWORD dwApply) PURE;
1185 STDMETHOD(SetPosition)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE;
1186 STDMETHOD(SetVelocity)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE;
1188 #undef INTERFACE
1190 #if !defined(__cplusplus) || defined(CINTERFACE)
1191 /*** IUnknown methods ***/
1192 #define IDirectSound3DBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1193 #define IDirectSound3DBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
1194 #define IDirectSound3DBuffer_Release(p) (p)->lpVtbl->Release(p)
1195 /*** IDirectSound3DBuffer methods ***/
1196 #define IDirectSound3DBuffer_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
1197 #define IDirectSound3DBuffer_GetConeAngles(p,a,b) (p)->lpVtbl->GetConeAngles(p,a,b)
1198 #define IDirectSound3DBuffer_GetConeOrientation(p,a) (p)->lpVtbl->GetConeOrientation(p,a)
1199 #define IDirectSound3DBuffer_GetConeOutsideVolume(p,a) (p)->lpVtbl->GetConeOutsideVolume(p,a)
1200 #define IDirectSound3DBuffer_GetMaxDistance(p,a) (p)->lpVtbl->GetMaxDistance(p,a)
1201 #define IDirectSound3DBuffer_GetMinDistance(p,a) (p)->lpVtbl->GetMinDistance(p,a)
1202 #define IDirectSound3DBuffer_GetMode(p,a) (p)->lpVtbl->GetMode(p,a)
1203 #define IDirectSound3DBuffer_GetPosition(p,a) (p)->lpVtbl->GetPosition(p,a)
1204 #define IDirectSound3DBuffer_GetVelocity(p,a) (p)->lpVtbl->GetVelocity(p,a)
1205 #define IDirectSound3DBuffer_SetAllParameters(p,a,b) (p)->lpVtbl->SetAllParameters(p,a,b)
1206 #define IDirectSound3DBuffer_SetConeAngles(p,a,b,c) (p)->lpVtbl->SetConeAngles(p,a,b,c)
1207 #define IDirectSound3DBuffer_SetConeOrientation(p,a,b,c,d) (p)->lpVtbl->SetConeOrientation(p,a,b,c,d)
1208 #define IDirectSound3DBuffer_SetConeOutsideVolume(p,a,b) (p)->lpVtbl->SetConeOutsideVolume(p,a,b)
1209 #define IDirectSound3DBuffer_SetMaxDistance(p,a,b) (p)->lpVtbl->SetMaxDistance(p,a,b)
1210 #define IDirectSound3DBuffer_SetMinDistance(p,a,b) (p)->lpVtbl->SetMinDistance(p,a,b)
1211 #define IDirectSound3DBuffer_SetMode(p,a,b) (p)->lpVtbl->SetMode(p,a,b)
1212 #define IDirectSound3DBuffer_SetPosition(p,a,b,c,d) (p)->lpVtbl->SetPosition(p,a,b,c,d)
1213 #define IDirectSound3DBuffer_SetVelocity(p,a,b,c,d) (p)->lpVtbl->SetVelocity(p,a,b,c,d)
1214 #else
1215 /*** IUnknown methods ***/
1216 #define IDirectSound3DBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1217 #define IDirectSound3DBuffer_AddRef(p) (p)->AddRef()
1218 #define IDirectSound3DBuffer_Release(p) (p)->Release()
1219 /*** IDirectSound3DBuffer methods ***/
1220 #define IDirectSound3DBuffer_GetAllParameters(p,a) (p)->GetAllParameters(a)
1221 #define IDirectSound3DBuffer_GetConeAngles(p,a,b) (p)->GetConeAngles(a,b)
1222 #define IDirectSound3DBuffer_GetConeOrientation(p,a) (p)->GetConeOrientation(a)
1223 #define IDirectSound3DBuffer_GetConeOutsideVolume(p,a) (p)->GetConeOutsideVolume(a)
1224 #define IDirectSound3DBuffer_GetMaxDistance(p,a) (p)->GetMaxDistance(a)
1225 #define IDirectSound3DBuffer_GetMinDistance(p,a) (p)->GetMinDistance(a)
1226 #define IDirectSound3DBuffer_GetMode(p,a) (p)->GetMode(a)
1227 #define IDirectSound3DBuffer_GetPosition(p,a) (p)->GetPosition(a)
1228 #define IDirectSound3DBuffer_GetVelocity(p,a) (p)->GetVelocity(a)
1229 #define IDirectSound3DBuffer_SetAllParameters(p,a,b) (p)->SetAllParameters(a,b)
1230 #define IDirectSound3DBuffer_SetConeAngles(p,a,b,c) (p)->SetConeAngles(a,b,c)
1231 #define IDirectSound3DBuffer_SetConeOrientation(p,a,b,c,d) (p)->SetConeOrientation(a,b,c,d)
1232 #define IDirectSound3DBuffer_SetConeOutsideVolume(p,a,b) (p)->SetConeOutsideVolume(a,b)
1233 #define IDirectSound3DBuffer_SetMaxDistance(p,a,b) (p)->SetMaxDistance(a,b)
1234 #define IDirectSound3DBuffer_SetMinDistance(p,a,b) (p)->SetMinDistance(a,b)
1235 #define IDirectSound3DBuffer_SetMode(p,a,b) (p)->SetMode(a,b)
1236 #define IDirectSound3DBuffer_SetPosition(p,a,b,c,d) (p)->SetPosition(a,b,c,d)
1237 #define IDirectSound3DBuffer_SetVelocity(p,a,b,c,d) (p)->SetVelocity(a,b,c,d)
1238 #endif
1240 /*****************************************************************************
1241 * IKsPropertySet interface
1243 #ifndef _IKsPropertySet_
1244 #define _IKsPropertySet_
1245 #define __IKsPropertySet_FWD_DEFINED__
1247 typedef struct IKsPropertySet *LPKSPROPERTYSET;
1249 DEFINE_GUID(IID_IKsPropertySet,0x31EFAC30,0x515C,0x11D0,0xA9,0xAA,0x00,0xAA,0x00,0x61,0xBE,0x93);
1251 #define KSPROPERTY_SUPPORT_GET 1
1252 #define KSPROPERTY_SUPPORT_SET 2
1254 #define INTERFACE IKsPropertySet
1255 DECLARE_INTERFACE_(IKsPropertySet,IUnknown)
1257 /*** IUnknown methods ***/
1258 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1259 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1260 STDMETHOD_(ULONG,Release)(THIS) PURE;
1261 /*** IKsPropertySet methods ***/
1262 STDMETHOD(Get)(THIS_ REFGUID rgid,ULONG x1,LPVOID p1,ULONG x2,LPVOID p2,ULONG x3,ULONG *px4) PURE;
1263 STDMETHOD(Set)(THIS_ REFGUID rgid,ULONG x1,LPVOID p1,ULONG x2,LPVOID p2,ULONG x3) PURE;
1264 STDMETHOD(QuerySupport)(THIS_ REFGUID rgid,ULONG x1,ULONG *px2) PURE;
1266 #undef INTERFACE
1268 #if !defined(__cplusplus) || defined(CINTERFACE)
1269 /*** IUnknown methods ***/
1270 #define IKsPropertySet_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1271 #define IKsPropertySet_AddRef(p) (p)->lpVtbl->AddRef(p)
1272 #define IKsPropertySet_Release(p) (p)->lpVtbl->Release(p)
1273 /*** IKsPropertySet methods ***/
1274 #define IKsPropertySet_Get(p,a,b,c,d,e,f,g) (p)->lpVtbl->Get(p,a,b,c,d,e,f,g)
1275 #define IKsPropertySet_Set(p,a,b,c,d,e,f) (p)->lpVtbl->Set(p,a,b,c,d,e,f)
1276 #define IKsPropertySet_QuerySupport(p,a,b,c) (p)->lpVtbl->QuerySupport(p,a,b,c)
1277 #else
1278 /*** IUnknown methods ***/
1279 #define IKsPropertySet_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1280 #define IKsPropertySet_AddRef(p) (p)->AddRef()
1281 #define IKsPropertySet_Release(p) (p)->Release()
1282 /*** IKsPropertySet methods ***/
1283 #define IKsPropertySet_Get(p,a,b,c,d,e,f,g) (p)->Get(a,b,c,d,e,f,g)
1284 #define IKsPropertySet_Set(p,a,b,c,d,e,f) (p)->Set(a,b,c,d,e,f)
1285 #define IKsPropertySet_QuerySupport(p,a,b,c) (p)->QuerySupport(a,b,c)
1286 #endif
1288 #endif /* _IKsPropertySet_ */
1290 /*****************************************************************************
1291 * IDirectSoundFullDuplex interface
1293 #define INTERFACE IDirectSoundFullDuplex
1294 DECLARE_INTERFACE_(IDirectSoundFullDuplex,IUnknown)
1296 /*** IUnknown methods ***/
1297 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1298 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1299 STDMETHOD_(ULONG,Release)(THIS) PURE;
1300 /*** IDirectSoundFullDuplex methods ***/
1301 STDMETHOD(Initialize)(THIS_ LPCGUID pCaptureGuid,LPCGUID pRendererGuid,LPCDSCBUFFERDESC lpDscBufferDesc,LPCDSBUFFERDESC lpDsBufferDesc,HWND hWnd,DWORD dwLevel,LPLPDIRECTSOUNDCAPTUREBUFFER8 lplpDirectSoundCaptureBuffer8,LPLPDIRECTSOUNDBUFFER8 lplpDirectSoundBuffer8) PURE;
1303 #undef INTERFACE
1305 #if !defined(__cplusplus) || defined(CINTERFACE)
1306 /*** IUnknown methods ***/
1307 #define IDirectSoundFullDuplex_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1308 #define IDirectSoundFullDuplex_AddRef(p) (p)->lpVtbl->AddRef(p)
1309 #define IDirectSoundFullDuplex_Release(p) (p)->lpVtbl->Release(p)
1310 /*** IDirectSoundFullDuplex methods ***/
1311 #define IDirectSoundFullDuplex_Initialize(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->Initialize(p,a,b,c,d,e,f,g,h)
1312 #else
1313 /*** IUnknown methods ***/
1314 #define IDirectSoundFullDuplex_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1315 #define IDirectSoundFullDuplex_AddRef(p) (p)->AddRef()
1316 #define IDirectSoundFullDuplex_Release(p) (p)->Release()
1317 /*** IDirectSoundFullDuplex methods ***/
1318 #define IDirectSoundFullDuplex_Initialize(p,a,b,c,d,e,f,g,h) (p)->Initialize(a,b,c,d,e,f,g,h)
1319 #endif
1322 /*****************************************************************************
1323 * IDirectSoundFXI3DL2Reverb interface
1325 #define INTERFACE IDirectSoundFXI3DL2Reverb
1326 DECLARE_INTERFACE_(IDirectSoundFXI3DL2Reverb,IUnknown)
1328 /*** IUnknown methods ***/
1329 STDMETHOD(QueryInterface)(THIS_ REFIID, void**) PURE;
1330 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1331 STDMETHOD_(ULONG,Release)(THIS) PURE;
1333 /*** IDirectSoundFXI3DL2Reverb methods ***/
1334 STDMETHOD(SetAllParameters)(THIS_ LPCDSFXI3DL2Reverb reverb) PURE;
1335 STDMETHOD(GetAllParameters)(THIS_ LPDSFXI3DL2Reverb reverb) PURE;
1336 STDMETHOD(SetPreset)(THIS_ DWORD preset) PURE;
1337 STDMETHOD(GetPreset)(THIS_ DWORD *preset) PURE;
1338 STDMETHOD(SetQuality)(THIS_ LONG quality) PURE;
1339 STDMETHOD(GetQuality)(THIS_ LONG *quality) PURE;
1341 #undef INTERFACE
1343 #if !defined(__cplusplus) || defined(CINTERFACE)
1344 #define IDirectSoundFXI3DL2Reverb_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1345 #define IDirectSoundFXI3DL2Reverb_AddRef(p) (p)->lpVtbl->AddRef(p)
1346 #define IDirectSoundFXI3DL2Reverb_Release(p) (p)->lpVtbl->Release(p)
1347 #define IDirectSoundFXI3DL2Reverb_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a)
1348 #define IDirectSoundFXI3DL2Reverb_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
1349 #define IDirectSoundFXI3DL2Reverb_SetPreset(p,a) (p)->lpVtbl->SetPreset(p,a)
1350 #define IDirectSoundFXI3DL2Reverb_GetPreset(p,a) (p)->lpVtbl->GetPreset(p,a)
1351 #else
1352 #define IDirectSoundFXI3DL2Reverb_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1353 #define IDirectSoundFXI3DL2Reverb_AddRef(p) (p)->AddRef()
1354 #define IDirectSoundFXI3DL2Reverb_Release(p) (p)->Release()
1355 #define IDirectSoundFXI3DL2Reverb_SetAllParameters(p,a) (p)->SetAllParameters(a)
1356 #define IDirectSoundFXI3DL2Reverb_GetAllParameters(p,a) (p)->GetAllParameters(a)
1357 #define IDirectSoundFXI3DL2Reverb_SetPreset(p,a) (p)->SetPreset(a)
1358 #define IDirectSoundFXI3DL2Reverb_GetPreset(p,a) (p)->GetPreset(a)
1359 #endif
1361 typedef struct _DSFXGargle
1363 DWORD dwRateHz;
1364 DWORD dwWaveShape;
1365 } DSFXGargle, *LPDSFXGargle;
1367 typedef const DSFXGargle *LPCDSFXGargle;
1369 #define DSFXGARGLE_RATEHZ_MIN 1
1370 #define DSFXGARGLE_RATEHZ_MAX 1000
1371 #define DSFXGARGLE_WAVE_SQUARE 1
1372 #define DSFXGARGLE_WAVE_TRIANGLE 0
1374 #define INTERFACE IDirectSoundFXGargle
1375 DECLARE_INTERFACE_(IDirectSoundFXGargle,IUnknown)
1377 /*** IUnknown methods ***/
1378 STDMETHOD(QueryInterface)(THIS_ REFIID, void**) PURE;
1379 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1380 STDMETHOD_(ULONG,Release)(THIS) PURE;
1382 /*** IDirectSoundFXGargle methods ***/
1383 STDMETHOD(SetAllParameters)(THIS_ const DSFXGargle *gargle) PURE;
1384 STDMETHOD(GetAllParameters)(THIS_ DSFXGargle *gargle) PURE;
1386 #undef INTERFACE
1388 #if !defined(__cplusplus) || defined(CINTERFACE)
1389 #define IDirectSoundFXGargle_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1390 #define IDirectSoundFXGargle_AddRef(p) (p)->lpVtbl->AddRef(p)
1391 #define IDirectSoundFXGargle_Release(p) (p)->lpVtbl->Release(p)
1392 #define IDirectSoundFXGargle_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a)
1393 #define IDirectSoundFXGargle_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
1394 #else
1395 #define IDirectSoundFXGargle_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
1396 #define IDirectSoundFXGargle_AddRef(p) (p)->AddRef(p)
1397 #define IDirectSoundFXGargle_Release(p) (p)->Release(p)
1398 #define IDirectSoundFXGargle_SetAllParameters(p,a) (p)->SetAllParameters(a)
1399 #define IDirectSoundFXGargle_GetAllParameters(p,a) (p)->GetAllParameters(a)
1400 #endif
1402 typedef struct _DSFXChorus
1404 FLOAT fWetDryMix;
1405 FLOAT fDepth;
1406 FLOAT fFeedback;
1407 FLOAT fFrequency;
1408 LONG lWaveform;
1409 FLOAT fDelay;
1410 LONG lPhase;
1411 } DSFXChorus, *LPDSFXChorus;
1413 typedef const DSFXChorus *LPCDSFXChorus;
1415 #define DSFXCHORUS_DEPTH_MIN 0.0f
1416 #define DSFXCHORUS_DEPTH_MAX 100.0f
1417 #define DSFXCHORUS_DELAY_MIN 0.0f
1418 #define DSFXCHORUS_DELAY_MAX 20.0f
1419 #define DSFXCHORUS_FEEDBACK_MIN -99.0f
1420 #define DSFXCHORUS_FEEDBACK_MAX 99.0f
1421 #define DSFXCHORUS_FREQUENCY_MIN 0.0f
1422 #define DSFXCHORUS_FREQUENCY_MAX 10.0f
1423 #define DSFXCHORUS_PHASE_MIN 0
1424 #define DSFXCHORUS_PHASE_MAX 4
1425 #define DSFXCHORUS_PHASE_NEG_180 0
1426 #define DSFXCHORUS_PHASE_NEG_90 1
1427 #define DSFXCHORUS_PHASE_ZERO 2
1428 #define DSFXCHORUS_PHASE_90 3
1429 #define DSFXCHORUS_PHASE_180 4
1430 #define DSFXCHORUS_WAVE_TRIANGLE 0
1431 #define DSFXCHORUS_WAVE_SIN 1
1432 #define DSFXCHORUS_WETDRYMIX_MIN 0.0f
1433 #define DSFXCHORUS_WETDRYMIX_MAX 100.0f
1435 #define INTERFACE IDirectSoundFXChorus
1436 DECLARE_INTERFACE_(IDirectSoundFXChorus,IUnknown)
1438 /*** IUnknown methods ***/
1439 STDMETHOD(QueryInterface)(THIS_ REFIID, void**) PURE;
1440 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1441 STDMETHOD_(ULONG,Release)(THIS) PURE;
1443 /*** IDirectSoundFXChorus methods ***/
1444 STDMETHOD(SetAllParameters)(THIS_ const DSFXChorus *chorus) PURE;
1445 STDMETHOD(GetAllParameters)(THIS_ DSFXChorus *chorus) PURE;
1447 #undef INTERFACE
1449 #if !defined(__cplusplus) || defined(CINTERFACE)
1450 #define IDirectSoundFXChorus_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1451 #define IDirectSoundFXChorus_AddRef(p) (p)->lpVtbl->AddRef(p)
1452 #define IDirectSoundFXChorus_Release(p) (p)->lpVtbl->Release(p)
1453 #define IDirectSoundFXChorus_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a)
1454 #define IDirectSoundFXChorus_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
1455 #else
1456 #define IDirectSoundFXChorus_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
1457 #define IDirectSoundFXChorus_AddRef(p) (p)->AddRef(p)
1458 #define IDirectSoundFXChorus_Release(p) (p)->Release(p)
1459 #define IDirectSoundFXChorus_SetAllParameters(p,a) (p)->SetAllParameters(a)
1460 #define IDirectSoundFXChorus_GetAllParameters(p,a) (p)->GetAllParameters(a)
1461 #endif
1463 typedef struct _DSFXFlanger
1465 FLOAT fWetDryMix;
1466 FLOAT fDepth;
1467 FLOAT fFeedback;
1468 FLOAT fFrequency;
1469 LONG lWaveform;
1470 FLOAT fDelay;
1471 LONG lPhase;
1472 } DSFXFlanger, *LPDSFXFlanger;
1474 typedef const DSFXFlanger *LPCDSFXFlanger;
1476 #define DSFXFLANGER_DELAY_MIN 0.0f
1477 #define DSFXFLANGER_DELAY_MAX 4.0f
1478 #define DSFXFLANGER_DEPTH_MIN 0.0f
1479 #define DSFXFLANGER_DEPTH_MAX 100.0f
1480 #define DSFXFLANGER_FREQUENCY_MIN 0.0f
1481 #define DSFXFLANGER_FREQUENCY_MAX 10.0f
1482 #define DSFXFLANGER_FEEDBACK_MIN -99.0f
1483 #define DSFXFLANGER_FEEDBACK_MAX 99.0f
1484 #define DSFXFLANGER_PHASE_MIN 0
1485 #define DSFXFLANGER_PHASE_MAX 4
1486 #define DSFXFLANGER_PHASE_NEG_180 0
1487 #define DSFXFLANGER_PHASE_NEG_90 1
1488 #define DSFXFLANGER_PHASE_ZERO 2
1489 #define DSFXFLANGER_PHASE_90 3
1490 #define DSFXFLANGER_PHASE_180 4
1491 #define DSFXFLANGER_WAVE_SIN 1
1492 #define DSFXFLANGER_WAVE_TRIANGLE 0
1493 #define DSFXFLANGER_WETDRYMIX_MIN 0.0f
1494 #define DSFXFLANGER_WETDRYMIX_MAX 100.0f
1496 #define INTERFACE IDirectSoundFXFlanger
1497 DECLARE_INTERFACE_(IDirectSoundFXFlanger,IUnknown)
1499 /*** IUnknown methods ***/
1500 STDMETHOD(QueryInterface)(THIS_ REFIID, void**) PURE;
1501 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1502 STDMETHOD_(ULONG,Release)(THIS) PURE;
1504 /*** IDirectSoundFXFlanger methods ***/
1505 STDMETHOD(SetAllParameters)(THIS_ const DSFXFlanger *flanger) PURE;
1506 STDMETHOD(GetAllParameters)(THIS_ DSFXFlanger *flanger) PURE;
1508 #undef INTERFACE
1510 #if !defined(__cplusplus) || defined(CINTERFACE)
1511 #define IDirectSoundFXFlanger_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1512 #define IDirectSoundFXFlanger_AddRef(p) (p)->lpVtbl->AddRef(p)
1513 #define IDirectSoundFXFlanger_Release(p) (p)->lpVtbl->Release(p)
1514 #define IDirectSoundFXFlanger_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a)
1515 #define IDirectSoundFXFlanger_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
1516 #else
1517 #define IDirectSoundFXFlanger_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
1518 #define IDirectSoundFXFlanger_AddRef(p) (p)->AddRef(p)
1519 #define IDirectSoundFXFlanger_Release(p) (p)->Release(p)
1520 #define IDirectSoundFXFlanger_SetAllParameters(p,a) (p)->SetAllParameters(a)
1521 #define IDirectSoundFXFlanger_GetAllParameters(p,a) (p)->GetAllParameters(a)
1522 #endif
1524 typedef struct _DSFXEcho
1526 FLOAT fWetDryMix;
1527 FLOAT fFeedback;
1528 FLOAT fLeftDelay;
1529 FLOAT fRightDelay;
1530 LONG lPanDelay;
1531 } DSFXEcho, *LPDSFXEcho;
1533 typedef const DSFXEcho *LPCDSFXEcho;
1535 #define DSFXECHO_FEEDBACK_MIN 0.0f
1536 #define DSFXECHO_FEEDBACK_MAX 100.0f
1537 #define DSFXECHO_LEFTDELAY_MIN 1.0f
1538 #define DSFXECHO_LEFTDELAY_MAX 2000.0f
1539 #define DSFXECHO_PANDELAY_MIN 0
1540 #define DSFXECHO_PANDELAY_MAX 1
1541 #define DSFXECHO_RIGHTDELAY_MIN 1.0f
1542 #define DSFXECHO_RIGHTDELAY_MAX 2000.0f
1543 #define DSFXECHO_WETDRYMIX_MIN 0.0f
1544 #define DSFXECHO_WETDRYMIX_MAX 100.0f
1546 #define INTERFACE IDirectSoundFXEcho
1547 DECLARE_INTERFACE_(IDirectSoundFXEcho,IUnknown)
1549 /*** IUnknown methods ***/
1550 STDMETHOD(QueryInterface)(THIS_ REFIID, void**) PURE;
1551 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1552 STDMETHOD_(ULONG,Release)(THIS) PURE;
1554 /*** IDirectSoundFXEcho methods ***/
1555 STDMETHOD(SetAllParameters)(THIS_ const DSFXEcho *echo) PURE;
1556 STDMETHOD(GetAllParameters)(THIS_ DSFXEcho *echo) PURE;
1558 #undef INTERFACE
1560 #if !defined(__cplusplus) || defined(CINTERFACE)
1561 #define IDirectSoundFXEcho_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1562 #define IDirectSoundFXEcho_AddRef(p) (p)->lpVtbl->AddRef(p)
1563 #define IDirectSoundFXEcho_Release(p) (p)->lpVtbl->Release(p)
1564 #define IDirectSoundFXEcho_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a)
1565 #define IDirectSoundFXEcho_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
1566 #else
1567 #define IDirectSoundFXEcho_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
1568 #define IDirectSoundFXEcho_AddRef(p) (p)->AddRef(p)
1569 #define IDirectSoundFXEcho_Release(p) (p)->Release(p)
1570 #define IDirectSoundFXEcho_SetAllParameters(p,a) (p)->SetAllParameters(a)
1571 #define IDirectSoundFXEcho_GetAllParameters(p,a) (p)->GetAllParameters(a)
1572 #endif
1574 typedef struct _DSFXDistortion
1576 FLOAT fGain;
1577 FLOAT fEdge;
1578 FLOAT fPostEQCenterFrequency;
1579 FLOAT fPostEQBandwidth;
1580 FLOAT fPreLowpassCutoff;
1581 } DSFXDistortion, *LPDSFXDistortion;
1583 typedef const DSFXDistortion *LPCDSFXDistortion;
1585 #define DSFXDISTORTION_EDGE_MIN 0.0f
1586 #define DSFXDISTORTION_EDGE_MAX 100.0f
1587 #define DSFXDISTORTION_GAIN_MIN -60.0f
1588 #define DSFXDISTORTION_GAIN_MAX 0.0f
1589 #define DSFXDISTORTION_POSTEQCENTERFREQUENCY_MIN 100.0f
1590 #define DSFXDISTORTION_POSTEQCENTERFREQUENCY_MAX 8000.0f
1591 #define DSFXDISTORTION_POSTEQBANDWIDTH_MIN 100.0f
1592 #define DSFXDISTORTION_POSTEQBANDWIDTH_MAX 8000.0f
1593 #define DSFXDISTORTION_PRELOWPASSCUTOFF_MIN 100.0f
1594 #define DSFXDISTORTION_PRELOWPASSCUTOFF_MAX 8000.0f
1596 #define INTERFACE IDirectSoundFXDistortion
1597 DECLARE_INTERFACE_(IDirectSoundFXDistortion,IUnknown)
1599 /*** IUnknown methods ***/
1600 STDMETHOD(QueryInterface)(THIS_ REFIID, void**) PURE;
1601 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1602 STDMETHOD_(ULONG,Release)(THIS) PURE;
1604 /*** IDirectSoundFXDistortion methods ***/
1605 STDMETHOD(SetAllParameters)(THIS_ const DSFXDistortion *distortion) PURE;
1606 STDMETHOD(GetAllParameters)(THIS_ DSFXDistortion *distortion) PURE;
1608 #undef INTERFACE
1610 #if !defined(__cplusplus) || defined(CINTERFACE)
1611 #define IDirectSoundFXDistortion_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1612 #define IDirectSoundFXDistortion_AddRef(p) (p)->lpVtbl->AddRef(p)
1613 #define IDirectSoundFXDistortion_Release(p) (p)->lpVtbl->Release(p)
1614 #define IDirectSoundFXDistortion_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a)
1615 #define IDirectSoundFXDistortion_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
1616 #else
1617 #define IDirectSoundFXDistortion_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
1618 #define IDirectSoundFXDistortion_AddRef(p) (p)->AddRef(p)
1619 #define IDirectSoundFXDistortion_Release(p) (p)->Release(p)
1620 #define IDirectSoundFXDistortion_SetAllParameters(p,a) (p)->SetAllParameters(a)
1621 #define IDirectSoundFXDistortion_GetAllParameters(p,a) (p)->GetAllParameters(a)
1622 #endif
1624 typedef struct _DSFXCompressor
1626 FLOAT fGain;
1627 FLOAT fAttack;
1628 FLOAT fRelease;
1629 FLOAT fThreshold;
1630 FLOAT fRatio;
1631 FLOAT fPredelay;
1632 } DSFXCompressor, *LPDSFXCompressor;
1634 typedef const DSFXCompressor *LPCDSFXCompressor;
1636 #define DSFXCOMPRESSOR_ATTACK_MIN 0.01f
1637 #define DSFXCOMPRESSOR_ATTACK_MAX 500.0f
1638 #define DSFXCOMPRESSOR_GAIN_MIN -60.0f
1639 #define DSFXCOMPRESSOR_GAIN_MAX 60.0f
1640 #define DSFXCOMPRESSOR_PREDELAY_MIN 0.0f
1641 #define DSFXCOMPRESSOR_PREDELAY_MAX 4.0f
1642 #define DSFXCOMPRESSOR_RATIO_MIN 1.0f
1643 #define DSFXCOMPRESSOR_RATIO_MAX 100.0f
1644 #define DSFXCOMPRESSOR_RELEASE_MIN 50.0f
1645 #define DSFXCOMPRESSOR_RELEASE_MAX 3000.0f
1646 #define DSFXCOMPRESSOR_THRESHOLD_MIN -60.0f
1647 #define DSFXCOMPRESSOR_THRESHOLD_MAX 0.0f
1649 #define INTERFACE IDirectSoundFXCompressor
1650 DECLARE_INTERFACE_(IDirectSoundFXCompressor, IUnknown)
1652 /*** IUnknown methods ***/
1653 STDMETHOD(QueryInterface)(THIS_ REFIID, void**) PURE;
1654 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1655 STDMETHOD_(ULONG,Release)(THIS) PURE;
1657 /*** IDirectSoundFXCompressor methods ***/
1658 STDMETHOD(SetAllParameters)(THIS_ const DSFXCompressor *compressor) PURE;
1659 STDMETHOD(GetAllParameters)(THIS_ DSFXCompressor *compressor) PURE;
1661 #undef INTERFACE
1663 #if !defined(__cplusplus) || defined(CINTERFACE)
1664 #define IDirectSoundFXCompressor_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1665 #define IDirectSoundFXCompressor_AddRef(p) (p)->lpVtbl->AddRef(p)
1666 #define IDirectSoundFXCompressor_Release(p) (p)->lpVtbl->Release(p)
1667 #define IDirectSoundFXCompressor_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a)
1668 #define IDirectSoundFXCompressor_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
1669 #else
1670 #define IDirectSoundFXCompressor_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
1671 #define IDirectSoundFXCompressor_AddRef(p) (p)->AddRef(p)
1672 #define IDirectSoundFXCompressor_Release(p) (p)->Release(p)
1673 #define IDirectSoundFXCompressor_SetAllParameters(p,a) (p)->SetAllParameters(a)
1674 #define IDirectSoundFXCompressor_GetAllParameters(p,a) (p)->GetAllParameters(a)
1675 #endif
1677 typedef struct _DSFXParamEq
1679 FLOAT fCenter;
1680 FLOAT fBandwidth;
1681 FLOAT fGain;
1682 } DSFXParamEq, *LPDSFXParamEq;
1684 typedef const DSFXParamEq *LPCDSFXParamEq;
1686 #define DSFXPARAMEQ_BANDWIDTH_MIN 1.0f
1687 #define DSFXPARAMEQ_BANDWIDTH_MAX 36.0f
1688 #define DSFXPARAMEQ_CENTER_MIN 80.0f
1689 #define DSFXPARAMEQ_CENTER_MAX 16000.0f
1690 #define DSFXPARAMEQ_GAIN_MIN -15.0f
1691 #define DSFXPARAMEQ_GAIN_MAX 15.0f
1693 #define INTERFACE IDirectSoundFXParamEq
1694 DECLARE_INTERFACE_(IDirectSoundFXParamEq, IUnknown)
1696 /*** IUnknown methods ***/
1697 STDMETHOD(QueryInterface)(THIS_ REFIID, void**) PURE;
1698 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1699 STDMETHOD_(ULONG,Release)(THIS) PURE;
1701 /*** IDirectSoundFXParamEq methods ***/
1702 STDMETHOD(SetAllParameters)(THIS_ const DSFXParamEq *param) PURE;
1703 STDMETHOD(GetAllParameters)(THIS_ DSFXParamEq *param) PURE;
1705 #undef INTERFACE
1707 #if !defined(__cplusplus) || defined(CINTERFACE)
1708 #define IDirectSoundFXParamEq_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1709 #define IDirectSoundFXParamEq_AddRef(p) (p)->lpVtbl->AddRef(p)
1710 #define IDirectSoundFXParamEq_Release(p) (p)->lpVtbl->Release(p)
1711 #define IDirectSoundFXParamEq_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a)
1712 #define IDirectSoundFXParamEq_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
1713 #else
1714 #define IDirectSoundFXParamEq_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
1715 #define IDirectSoundFXParamEq_AddRef(p) (p)->AddRef(p)
1716 #define IDirectSoundFXParamEq_Release(p) (p)->Release(p)
1717 #define IDirectSoundFXParamEq_SetAllParameters(p,a) (p)->SetAllParameters(a)
1718 #define IDirectSoundFXParamEq_GetAllParameters(p,a) (p)->GetAllParameters(a)
1719 #endif
1721 typedef struct _DSFXWavesReverb
1723 FLOAT fInGain;
1724 FLOAT fReverbMix;
1725 FLOAT fReverbTime;
1726 FLOAT fHighFreqRTRatio;
1727 } DSFXWavesReverb, *LPDSFXWavesReverb;
1729 typedef const DSFXWavesReverb *LPCDSFXWavesReverb;
1731 #define DSFX_WAVESREVERB_HIGHFREQRTRATIO_MIN 0.001f
1732 #define DSFX_WAVESREVERB_HIGHFREQRTRATIO_MAX 0.999f
1733 #define DSFX_WAVESREVERB_HIGHFREQRTRATIO_DEFAULT 0.001f
1734 #define DSFX_WAVESREVERB_INGAIN_MIN -96.0f
1735 #define DSFX_WAVESREVERB_INGAIN_MAX 0.0f
1736 #define DSFX_WAVESREVERB_INGAIN_DEFAULT 0.0f
1737 #define DSFX_WAVESREVERB_REVERBMIX_MIN -96.0f
1738 #define DSFX_WAVESREVERB_REVERBMIX_MAX 0.0f
1739 #define DSFX_WAVESREVERB_REVERBMIX_DEFAULT 0.0f
1740 #define DSFX_WAVESREVERB_REVERBTIME_MIN 0.001f
1741 #define DSFX_WAVESREVERB_REVERBTIME_MAX 3000.0f
1742 #define DSFX_WAVESREVERB_REVERBTIME_DEFAULT 1000.0f
1744 #define INTERFACE IDirectSoundFXWavesReverb
1745 DECLARE_INTERFACE_(IDirectSoundFXWavesReverb,IUnknown)
1747 /*** IUnknown methods ***/
1748 STDMETHOD(QueryInterface)(THIS_ REFIID, void**) PURE;
1749 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1750 STDMETHOD_(ULONG,Release)(THIS) PURE;
1752 /*** IDirectSoundFXWavesReverb methods ***/
1753 STDMETHOD(SetAllParameters)(THIS_ const DSFXWavesReverb *reverb) PURE;
1754 STDMETHOD(GetAllParameters)(THIS_ DSFXWavesReverb *reverb) PURE;
1756 #undef INTERFACE
1758 #if !defined(__cplusplus) || defined(CINTERFACE)
1759 #define IDirectSoundFXWavesReverb_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1760 #define IDirectSoundFXWavesReverb_AddRef(p) (p)->lpVtbl->AddRef(p)
1761 #define IDirectSoundFXWavesReverb_Release(p) (p)->lpVtbl->Release(p)
1762 #define IDirectSoundFXWavesReverb_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a)
1763 #define IDirectSoundFXWavesReverb_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
1764 #else
1765 #define IDirectSoundFXWavesReverb_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
1766 #define IDirectSoundFXWavesReverb_AddRef(p) (p)->AddRef(p)
1767 #define IDirectSoundFXWavesReverb_Release(p) (p)->Release(p)
1768 #define IDirectSoundFXWavesReverb_SetAllParameters(p,a) (p)->SetAllParameters(a)
1769 #define IDirectSoundFXWavesReverb_GetAllParameters(p,a) (p)->GetAllParameters(a)
1770 #endif
1772 #ifdef __cplusplus
1773 } /* extern "C" */
1774 #endif /* defined(__cplusplus) */
1776 #endif /* __DSOUND_INCLUDED__ */