1 #include <_mingw_unicode.h>
2 #undef INTERFACE
3 /*
4 * Copyright (C) the Wine project
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21 #ifndef __DSOUND_INCLUDED__
22 #define __DSOUND_INCLUDED__
23
24 #ifndef DIRECTSOUND_VERSION
25 #define DIRECTSOUND_VERSION 0x0900
26 #endif
27
28 #define COM_NO_WINDOWS_H
29 #include <objbase.h>
30 #include <float.h>
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif /* defined(__cplusplus) */
35
36 #ifndef DX_SHARED_DEFINES
37
38 typedef float D3DVALUE, *LPD3DVALUE;
39
40 #ifndef D3DCOLOR_DEFINED
41 typedef DWORD D3DCOLOR, *LPD3DCOLOR;
42 #define D3DCOLOR_DEFINED
43 #endif
44
45 #ifndef D3DVECTOR_DEFINED
46 typedef struct _D3DVECTOR {
47 float x;
48 float y;
49 float z;
50 } D3DVECTOR;
51 #define D3DVECTOR_DEFINED
52 #endif
53
54 #ifndef LPD3DVECTOR_DEFINED
55 typedef D3DVECTOR *LPD3DVECTOR;
56 #define LPD3DVECTOR_DEFINED
57 #endif
58
59 #define DX_SHARED_DEFINES
60 #endif /* DX_SHARED_DEFINES */
61
62 /*****************************************************************************
63 * Predeclare the interfaces
64 */
65 DEFINE_GUID(CLSID_DirectSound, 0x47d4d946, 0x62e8, 0x11cf, 0x93, 0xbc, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00);
66 DEFINE_GUID(CLSID_DirectSound8, 0x3901cc3f, 0x84b5, 0x4fa4, 0xba, 0x35, 0xaa, 0x81, 0x72, 0xb8, 0xa0, 0x9b);
67 DEFINE_GUID(CLSID_DirectSoundCapture, 0xb0210780, 0x89cd, 0x11d0, 0xaf, 0x08, 0x00, 0xa0, 0xc9, 0x25, 0xcd, 0x16);
68 DEFINE_GUID(CLSID_DirectSoundCapture8, 0xe4bcac13, 0x7f99, 0x4908, 0x9a, 0x8e, 0x74, 0xe3, 0xbf, 0x24, 0xb6, 0xe1);
69 DEFINE_GUID(CLSID_DirectSoundFullDuplex,0xfea4300c, 0x7959, 0x4147, 0xb2, 0x6a, 0x23, 0x77, 0xb9, 0xe7, 0xa9, 0x1d);
70
71 DEFINE_GUID(IID_IDirectSound, 0x279AFA83,0x4981,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60);
72 typedef struct IDirectSound *LPDIRECTSOUND,**LPLPDIRECTSOUND;
73
74 DEFINE_GUID(IID_IDirectSound8, 0xC50A7E93,0xF395,0x4834,0x9E,0xF6,0x7F,0xA9,0x9D,0xE5,0x09,0x66);
75 typedef struct IDirectSound8 *LPDIRECTSOUND8,**LPLPDIRECTSOUND8;
76
77 DEFINE_GUID(IID_IDirectSoundBuffer, 0x279AFA85,0x4981,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60);
78 typedef struct IDirectSoundBuffer *LPDIRECTSOUNDBUFFER,**LPLPDIRECTSOUNDBUFFER;
79
80 DEFINE_GUID(IID_IDirectSoundBuffer8, 0x6825A449,0x7524,0x4D82,0x92,0x0F,0x50,0xE3,0x6A,0xB3,0xAB,0x1E);
81 typedef struct IDirectSoundBuffer8 *LPDIRECTSOUNDBUFFER8,**LPLPDIRECTSOUNDBUFFER8;
82
83 DEFINE_GUID(IID_IDirectSoundNotify, 0xB0210783,0x89cd,0x11d0,0xAF,0x08,0x00,0xA0,0xC9,0x25,0xCD,0x16);
84 typedef struct IDirectSoundNotify *LPDIRECTSOUNDNOTIFY,**LPLPDIRECTSOUNDNOTIFY;
85 #define IID_IDirectSoundNotify8 IID_IDirectSoundNotify
86
87 DEFINE_GUID(IID_IDirectSound3DListener, 0x279AFA84,0x4981,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60);
88 typedef struct IDirectSound3DListener *LPDIRECTSOUND3DLISTENER,**LPLPDIRECTSOUND3DLISTENER;
89
90 DEFINE_GUID(IID_IDirectSound3DBuffer, 0x279AFA86,0x4981,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60);
91 typedef struct IDirectSound3DBuffer *LPDIRECTSOUND3DBUFFER,**LPLPDIRECTSOUND3DBUFFER;
92
93 DEFINE_GUID(IID_IDirectSoundCapture, 0xB0210781,0x89CD,0x11D0,0xAF,0x08,0x00,0xA0,0xC9,0x25,0xCD,0x16);
94 typedef struct IDirectSoundCapture *LPDIRECTSOUNDCAPTURE,**LPLPDIRECTSOUNDCAPTURE;
95 #define IID_IDirectSoundCapture8 IID_IDirectSoundCapture
96 typedef struct IDirectSoundCapture IDirectSoundCapture8,*LPDIRECTSOUNDCAPTURE8,**LPLPDIRECTSOUNDCAPTURE8;
97
98 DEFINE_GUID(IID_IDirectSoundCaptureBuffer,0xB0210782,0x89CD,0x11D0,0xAF,0x08,0x00,0xA0,0xC9,0x25,0xCD,0x16);
99 typedef struct IDirectSoundCaptureBuffer *LPDIRECTSOUNDCAPTUREBUFFER,**LPLPDIRECTSOUNDCAPTUREBUFFER;
100
101 DEFINE_GUID(IID_IDirectSoundCaptureBuffer8,0x00990DF4,0x0DBB,0x4872,0x83,0x3E,0x6D,0x30,0x3E,0x80,0xAE,0xB6);
102 typedef struct IDirectSoundCaptureBuffer8 *LPDIRECTSOUNDCAPTUREBUFFER8,**LPLPDIRECTSOUNDCAPTUREBUFFER8;
103
104 DEFINE_GUID(IID_IDirectSoundFullDuplex, 0xEDCB4C7A,0xDAAB,0x4216,0xA4,0x2E,0x6C,0x50,0x59,0x6D,0xDC,0x1D);
105 typedef struct IDirectSoundFullDuplex *LPDIRECTSOUNDFULLDUPLEX,**LPLPDIRECTSOUNDFULLDUPLEX;
106 #define IID_IDirectSoundFullDuplex8 IID_IDirectSoundFullDuplex
107
108 DEFINE_GUID(IID_IDirectSoundFXI3DL2Reverb, 0x4b166a6a, 0x0d66, 0x43f3, 0x80, 0xe3, 0xee, 0x62, 0x80, 0xde, 0xe1, 0xa4);
109 typedef struct IDirectSoundFXI3DL2Reverb *LPDIRECTSOUNDFXI3DL2REVERB;
110 #define IDirectSoundFXI3DL2Reverb8 IDirectSoundFXI3DL2Reverb
111 #define IID_IDirectSoundFXI3DL2Reverb8 IID_IDirectSoundFXI3DL2Reverb
112 typedef struct IDirectSoundFXI3DL2Reverb8 *LPDIRECTSOUNDFXI3DL2REVERB8;
113
114 DEFINE_GUID(DSDEVID_DefaultPlayback, 0xDEF00000,0x9C6D,0x47Ed,0xAA,0xF1,0x4D,0xDA,0x8F,0x2B,0x5C,0x03);
115 DEFINE_GUID(DSDEVID_DefaultCapture, 0xDEF00001,0x9C6D,0x47Ed,0xAA,0xF1,0x4D,0xDA,0x8F,0x2B,0x5C,0x03);
116 DEFINE_GUID(DSDEVID_DefaultVoicePlayback,0xDEF00002,0x9C6D,0x47Ed,0xAA,0xF1,0x4D,0xDA,0x8F,0x2B,0x5C,0x03);
117 DEFINE_GUID(DSDEVID_DefaultVoiceCapture, 0xDEF00003,0x9C6D,0x47ED,0xAA,0xF1,0x4D,0xDA,0x8F,0x2B,0x5C,0x03);
118
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);
134
135 #define _FACDS 0x878
136 #define MAKE_DSHRESULT(code) MAKE_HRESULT(1,_FACDS,code)
137
138 #define DS_OK 0
139 #define DS_NO_VIRTUALIZATION MAKE_HRESULT(0, _FACDS, 10)
140 #define DS_INCOMPLETE MAKE_HRESULT(0, _FACDS, 20)
141 #define DSERR_ALLOCATED MAKE_DSHRESULT(10)
142 #define DSERR_CONTROLUNAVAIL MAKE_DSHRESULT(30)
143 #define DSERR_INVALIDPARAM E_INVALIDARG
144 #define DSERR_INVALIDCALL MAKE_DSHRESULT(50)
145 #define DSERR_GENERIC E_FAIL
146 #define DSERR_PRIOLEVELNEEDED MAKE_DSHRESULT(70)
147 #define DSERR_OUTOFMEMORY E_OUTOFMEMORY
148 #define DSERR_BADFORMAT MAKE_DSHRESULT(100)
149 #define DSERR_UNSUPPORTED E_NOTIMPL
150 #define DSERR_NODRIVER MAKE_DSHRESULT(120)
151 #define DSERR_ALREADYINITIALIZED MAKE_DSHRESULT(130)
152 #define DSERR_NOAGGREGATION CLASS_E_NOAGGREGATION
153 #define DSERR_BUFFERLOST MAKE_DSHRESULT(150)
154 #define DSERR_OTHERAPPHASPRIO MAKE_DSHRESULT(160)
155 #define DSERR_UNINITIALIZED MAKE_DSHRESULT(170)
156 #define DSERR_NOINTERFACE E_NOINTERFACE
157 #define DSERR_ACCESSDENIED E_ACCESSDENIED
158 #define DSERR_BUFFERTOOSMALL MAKE_DSHRESULT(180)
159 #define DSERR_DS8_REQUIRED MAKE_DSHRESULT(190)
160 #define DSERR_SENDLOOP MAKE_DSHRESULT(200)
161 #define DSERR_BADSENDBUFFERGUID MAKE_DSHRESULT(210)
162 #define DSERR_FXUNAVAILABLE MAKE_DSHRESULT(220)
163 #define DSERR_OBJECTNOTFOUND MAKE_DSHRESULT(4449)
164
165 #define DSCAPS_PRIMARYMONO 0x00000001
166 #define DSCAPS_PRIMARYSTEREO 0x00000002
167 #define DSCAPS_PRIMARY8BIT 0x00000004
168 #define DSCAPS_PRIMARY16BIT 0x00000008
169 #define DSCAPS_CONTINUOUSRATE 0x00000010
170 #define DSCAPS_EMULDRIVER 0x00000020
171 #define DSCAPS_CERTIFIED 0x00000040
172 #define DSCAPS_SECONDARYMONO 0x00000100
173 #define DSCAPS_SECONDARYSTEREO 0x00000200
174 #define DSCAPS_SECONDARY8BIT 0x00000400
175 #define DSCAPS_SECONDARY16BIT 0x00000800
176
177 #define DSSCL_NORMAL 1
178 #define DSSCL_PRIORITY 2
179 #define DSSCL_EXCLUSIVE 3
180 #define DSSCL_WRITEPRIMARY 4
181
182 typedef struct _DSCAPS
183 {
184 DWORD dwSize;
185 DWORD dwFlags;
186 DWORD dwMinSecondarySampleRate;
187 DWORD dwMaxSecondarySampleRate;
188 DWORD dwPrimaryBuffers;
189 DWORD dwMaxHwMixingAllBuffers;
190 DWORD dwMaxHwMixingStaticBuffers;
191 DWORD dwMaxHwMixingStreamingBuffers;
192 DWORD dwFreeHwMixingAllBuffers;
193 DWORD dwFreeHwMixingStaticBuffers;
194 DWORD dwFreeHwMixingStreamingBuffers;
195 DWORD dwMaxHw3DAllBuffers;
196 DWORD dwMaxHw3DStaticBuffers;
197 DWORD dwMaxHw3DStreamingBuffers;
198 DWORD dwFreeHw3DAllBuffers;
199 DWORD dwFreeHw3DStaticBuffers;
200 DWORD dwFreeHw3DStreamingBuffers;
201 DWORD dwTotalHwMemBytes;
202 DWORD dwFreeHwMemBytes;
203 DWORD dwMaxContigFreeHwMemBytes;
204 DWORD dwUnlockTransferRateHwBuffers;
205 DWORD dwPlayCpuOverheadSwBuffers;
206 DWORD dwReserved1;
207 DWORD dwReserved2;
208 } DSCAPS,*LPDSCAPS;
209 typedef const DSCAPS *LPCDSCAPS;
210
211 #define DSBPLAY_LOOPING 0x00000001
212 #define DSBPLAY_LOCHARDWARE 0x00000002
213 #define DSBPLAY_LOCSOFTWARE 0x00000004
214 #define DSBPLAY_TERMINATEBY_TIME 0x00000008
215 #define DSBPLAY_TERMINATEBY_DISTANCE 0x000000010
216 #define DSBPLAY_TERMINATEBY_PRIORITY 0x000000020
217
218 #define DSBSTATUS_PLAYING 0x00000001
219 #define DSBSTATUS_BUFFERLOST 0x00000002
220 #define DSBSTATUS_LOOPING 0x00000004
221 #define DSBSTATUS_LOCHARDWARE 0x00000008
222 #define DSBSTATUS_LOCSOFTWARE 0x00000010
223 #define DSBSTATUS_TERMINATED 0x00000020
224
225 #define DSBLOCK_FROMWRITECURSOR 0x00000001
226 #define DSBLOCK_ENTIREBUFFER 0x00000002
227
228 #define DSBCAPS_PRIMARYBUFFER 0x00000001
229 #define DSBCAPS_STATIC 0x00000002
230 #define DSBCAPS_LOCHARDWARE 0x00000004
231 #define DSBCAPS_LOCSOFTWARE 0x00000008
232 #define DSBCAPS_CTRL3D 0x00000010
233 #define DSBCAPS_CTRLFREQUENCY 0x00000020
234 #define DSBCAPS_CTRLPAN 0x00000040
235 #define DSBCAPS_CTRLVOLUME 0x00000080
236 #define DSBCAPS_CTRLDEFAULT 0x000000E0 /* Pan + volume + frequency. */
237 #define DSBCAPS_CTRLPOSITIONNOTIFY 0x00000100
238 #define DSBCAPS_CTRLFX 0x00000200
239 #define DSBCAPS_CTRLALL 0x000001F0 /* All control capabilities */
240 #define DSBCAPS_STICKYFOCUS 0x00004000
241 #define DSBCAPS_GLOBALFOCUS 0x00008000
242 #define DSBCAPS_GETCURRENTPOSITION2 0x00010000 /* More accurate play cursor under emulation*/
243 #define DSBCAPS_MUTE3DATMAXDISTANCE 0x00020000
244 #define DSBCAPS_LOCDEFER 0x00040000
245
246 #define DSBSIZE_MIN 4
247 #define DSBSIZE_MAX 0xFFFFFFF
248 #define DSBSIZE_FX_MIN 150
249 #define DSBPAN_LEFT -10000
250 #define DSBPAN_CENTER 0
251 #define DSBPAN_RIGHT 10000
252 #define DSBVOLUME_MAX 0
253 #define DSBVOLUME_MIN -10000
254 #define DSBFREQUENCY_MIN 100
255 #if (DIRECTSOUND_VERSION >= 0x0900)
256 #define DSBFREQUENCY_MAX 200000
257 #else
258 #define DSBFREQUENCY_MAX 100000
259 #endif
260 #define DSBFREQUENCY_ORIGINAL 0
261
262 #define DSBNOTIFICATIONS_MAX 100000U
263
264 typedef struct _DSBCAPS
265 {
266 DWORD dwSize;
267 DWORD dwFlags;
268 DWORD dwBufferBytes;
269 DWORD dwUnlockTransferRate;
270 DWORD dwPlayCpuOverhead;
271 } DSBCAPS,*LPDSBCAPS;
272 typedef const DSBCAPS *LPCDSBCAPS;
273
274 #define DSSCL_NORMAL 1
275 #define DSSCL_PRIORITY 2
276 #define DSSCL_EXCLUSIVE 3
277 #define DSSCL_WRITEPRIMARY 4
278
279 typedef struct _DSEFFECTDESC
280 {
281 DWORD dwSize;
282 DWORD dwFlags;
283 GUID guidDSFXClass;
284 DWORD_PTR dwReserved1;
285 DWORD_PTR dwReserved2;
286 } DSEFFECTDESC,*LPDSEFFECTDESC;
287 typedef const DSEFFECTDESC *LPCDSEFFECTDESC;
288
289 #define DSFX_LOCHARDWARE 0x00000001
290 #define DSFX_LOCSOFTWARE 0x00000002
291
292 enum
293 {
294 DSFXR_PRESENT,
295 DSFXR_LOCHARDWARE,
296 DSFXR_LOCSOFTWARE,
297 DSFXR_UNALLOCATED,
298 DSFXR_FAILED,
299 DSFXR_UNKNOWN,
300 DSFXR_SENDLOOP
301 };
302
303 typedef struct _DSBUFFERDESC1
304 {
305 DWORD dwSize;
306 DWORD dwFlags;
307 DWORD dwBufferBytes;
308 DWORD dwReserved;
309 LPWAVEFORMATEX lpwfxFormat;
310 } DSBUFFERDESC1,*LPDSBUFFERDESC1;
311 typedef const DSBUFFERDESC1 *LPCDSBUFFERDESC1;
312
313 typedef struct _DSBUFFERDESC
314 {
315 DWORD dwSize;
316 DWORD dwFlags;
317 DWORD dwBufferBytes;
318 DWORD dwReserved;
319 LPWAVEFORMATEX lpwfxFormat;
320 #if (DIRECTSOUND_VERSION >= 0x0700)
321 GUID guid3DAlgorithm;
322 #endif /* DS7 */
323 } DSBUFFERDESC,*LPDSBUFFERDESC;
324 typedef const DSBUFFERDESC *LPCDSBUFFERDESC;
325
326 typedef struct _DSBPOSITIONNOTIFY
327 {
328 DWORD dwOffset;
329 HANDLE hEventNotify;
330 } DSBPOSITIONNOTIFY,*LPDSBPOSITIONNOTIFY;
331 typedef const DSBPOSITIONNOTIFY *LPCDSBPOSITIONNOTIFY;
332
333 #define DSSPEAKER_DIRECTOUT 0
334 #define DSSPEAKER_HEADPHONE 1
335 #define DSSPEAKER_MONO 2
336 #define DSSPEAKER_QUAD 3
337 #define DSSPEAKER_STEREO 4
338 #define DSSPEAKER_SURROUND 5
339 #define DSSPEAKER_5POINT1 6
340 #define DSSPEAKER_5POINT1_BACK 6
341 #define DSSPEAKER_7POINT1 7
342 #define DSSPEAKER_7POINT1_WIDE 7
343 #define DSSPEAKER_7POINT1_SURROUND 8
344 #define DSSPEAKER_5POINT1_SURROUND 9
345
346 #define DSSPEAKER_GEOMETRY_MIN 0x00000005 /* 5 degrees */
347 #define DSSPEAKER_GEOMETRY_NARROW 0x0000000A /* 10 degrees */
348 #define DSSPEAKER_GEOMETRY_WIDE 0x00000014 /* 20 degrees */
349 #define DSSPEAKER_GEOMETRY_MAX 0x000000B4 /* 180 degrees */
350
351 #define DSSPEAKER_COMBINED(c, g) ((DWORD)(((BYTE)(c)) | ((DWORD)((BYTE)(g))) << 16))
352 #define DSSPEAKER_CONFIG(a) ((BYTE)(a))
353 #define DSSPEAKER_GEOMETRY(a) ((BYTE)(((DWORD)(a) >> 16) & 0x00FF))
354
355 #define DS_CERTIFIED 0x00000000
356 #define DS_UNCERTIFIED 0x00000001
357
358 #define DS3DALG_DEFAULT GUID_NULL
359
360 typedef struct _DSCEFFECTDESC
361 {
362 DWORD dwSize;
363 DWORD dwFlags;
364 GUID guidDSCFXClass;
365 GUID guidDSCFXInstance;
366 DWORD dwReserved1;
367 DWORD dwReserved2;
368 } DSCEFFECTDESC, *LPDSCEFFECTDESC;
369 typedef const DSCEFFECTDESC *LPCDSCEFFECTDESC;
370
371 #define DSCFX_LOCHARDWARE 0x00000001
372 #define DSCFX_LOCSOFTWARE 0x00000002
373
374 #define DSCFXR_LOCHARDWARE 0x00000010
375 #define DSCFXR_LOCSOFTWARE 0x00000020
376
377 typedef struct _DSCBUFFERDESC1
378 {
379 DWORD dwSize;
380 DWORD dwFlags;
381 DWORD dwBufferBytes;
382 DWORD dwReserved;
383 LPWAVEFORMATEX lpwfxFormat;
384 } DSCBUFFERDESC1, *LPDSCBUFFERDESC1;
385
386 typedef struct _DSCBUFFERDESC
387 {
388 DWORD dwSize;
389 DWORD dwFlags;
390 DWORD dwBufferBytes;
391 DWORD dwReserved;
392 LPWAVEFORMATEX lpwfxFormat;
393 #if (DIRECTSOUND_VERSION >= 0x0800)
394 DWORD dwFXCount;
395 LPDSCEFFECTDESC lpDSCFXDesc;
396 #endif /* DS8 */
397 } DSCBUFFERDESC, *LPDSCBUFFERDESC;
398 typedef const DSCBUFFERDESC *LPCDSCBUFFERDESC;
399
400 typedef struct _DSCCAPS
401 {
402 DWORD dwSize;
403 DWORD dwFlags;
404 DWORD dwFormats;
405 DWORD dwChannels;
406 } DSCCAPS, *LPDSCCAPS;
407 typedef const DSCCAPS *LPCDSCCAPS;
408
409 typedef struct _DSCBCAPS
410 {
411 DWORD dwSize;
412 DWORD dwFlags;
413 DWORD dwBufferBytes;
414 DWORD dwReserved;
415 } DSCBCAPS, *LPDSCBCAPS;
416 typedef const DSCBCAPS *LPCDSCBCAPS;
417
418 typedef struct _DSFXI3DL2Reverb
419 {
420 LONG lRoom;
421 LONG lRoomHF;
422 FLOAT flRoomRolloffFactor;
423 FLOAT flDecayTime;
424 FLOAT flDecayHFRatio;
425 LONG lReflections;
426 FLOAT flReflectionsDelay;
427 LONG lReverb;
428 FLOAT flReverbDelay;
429 FLOAT flDiffusion;
430 FLOAT flDensity;
431 FLOAT flHFReference;
432 } DSFXI3DL2Reverb, *LPDSFXI3DL2Reverb;
433
434 typedef const DSFXI3DL2Reverb *LPCDSFXI3DL2Reverb;
435
436 #define DSCCAPS_EMULDRIVER DSCAPS_EMULDRIVER
437 #define DSCCAPS_CERTIFIED DSCAPS_CERTIFIED
438 #define DSCCAPS_MULTIPLECAPTURE 0x00000001
439
440 #define DSCBCAPS_WAVEMAPPED 0x80000000
441 #define DSCBCAPS_CTRLFX 0x00000200
442
443 #define DSCBLOCK_ENTIREBUFFER 0x00000001
444 #define DSCBSTART_LOOPING 0x00000001
445 #define DSCBPN_OFFSET_STOP 0xffffffff
446
447 #define DSCBSTATUS_CAPTURING 0x00000001
448 #define DSCBSTATUS_LOOPING 0x00000002
449
450 #ifndef __LPCGUID_DEFINED__
451 #define __LPCGUID_DEFINED__
452 typedef const GUID *LPCGUID;
453 #endif
454
455 typedef WINBOOL (CALLBACK *LPDSENUMCALLBACKW)(LPGUID,LPCWSTR,LPCWSTR,LPVOID);
456 typedef WINBOOL (CALLBACK *LPDSENUMCALLBACKA)(LPGUID,LPCSTR,LPCSTR,LPVOID);
457 __MINGW_TYPEDEF_AW(LPDSENUMCALLBACK)
458
459 extern HRESULT WINAPI DirectSoundCreate(LPCGUID lpGUID,LPDIRECTSOUND *ppDS,LPUNKNOWN pUnkOuter);
460 extern HRESULT WINAPI DirectSoundEnumerateA(LPDSENUMCALLBACKA, LPVOID);
461 extern HRESULT WINAPI DirectSoundEnumerateW(LPDSENUMCALLBACKW, LPVOID);
462 #define DirectSoundEnumerate __MINGW_NAME_AW(DirectSoundEnumerate)
463 extern HRESULT WINAPI DirectSoundCaptureCreate(LPCGUID lpGUID, LPDIRECTSOUNDCAPTURE *ppDSC, LPUNKNOWN pUnkOuter);
464 extern HRESULT WINAPI DirectSoundCaptureEnumerateA(LPDSENUMCALLBACKA, LPVOID);
465 extern HRESULT WINAPI DirectSoundCaptureEnumerateW(LPDSENUMCALLBACKW, LPVOID);
466 #define DirectSoundCaptureEnumerate __MINGW_NAME_AW(DirectSoundCaptureEnumerate)
467
468 extern HRESULT WINAPI DirectSoundCreate8(LPCGUID lpGUID,LPDIRECTSOUND8 *ppDS8,LPUNKNOWN pUnkOuter);
469 extern HRESULT WINAPI DirectSoundCaptureCreate8(LPCGUID lpGUID, LPDIRECTSOUNDCAPTURE8 *ppDSC8, LPUNKNOWN pUnkOuter);
470 extern HRESULT WINAPI DirectSoundFullDuplexCreate(LPCGUID pcGuidCaptureDevice, LPCGUID pcGuidRenderDevice,
471 LPCDSCBUFFERDESC pcDSCBufferDesc, LPCDSBUFFERDESC pcDSBufferDesc, HWND hWnd, DWORD dwLevel,
472 LPDIRECTSOUNDFULLDUPLEX *ppDSFD, LPDIRECTSOUNDCAPTUREBUFFER8 *ppDSCBuffer8, LPDIRECTSOUNDBUFFER8 *ppDSBuffer8, LPUNKNOWN pUnkOuter);
473 #define DirectSoundFullDuplexCreate8 DirectSoundFullDuplexCreate
474 extern HRESULT WINAPI GetDeviceID(LPCGUID lpGuidSrc, LPGUID lpGuidDest);
475
476
477 /*****************************************************************************
478 * IDirectSound interface
479 */
480 #define INTERFACE IDirectSound
DECLARE_INTERFACE_(IDirectSound,IUnknown)481 DECLARE_INTERFACE_(IDirectSound,IUnknown)
482 {
483 /*** IUnknown methods ***/
484 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
485 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
486 STDMETHOD_(ULONG,Release)(THIS) PURE;
487 /*** IDirectSound methods ***/
488 STDMETHOD(CreateSoundBuffer)(THIS_ LPCDSBUFFERDESC lpcDSBufferDesc, LPLPDIRECTSOUNDBUFFER lplpDirectSoundBuffer, IUnknown *pUnkOuter) PURE;
489 STDMETHOD(GetCaps)(THIS_ LPDSCAPS lpDSCaps) PURE;
490 STDMETHOD(DuplicateSoundBuffer)(THIS_ LPDIRECTSOUNDBUFFER lpDsbOriginal, LPLPDIRECTSOUNDBUFFER lplpDsbDuplicate) PURE;
491 STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwLevel) PURE;
492 STDMETHOD(Compact)(THIS) PURE;
493 STDMETHOD(GetSpeakerConfig)(THIS_ LPDWORD lpdwSpeakerConfig) PURE;
494 STDMETHOD(SetSpeakerConfig)(THIS_ DWORD dwSpeakerConfig) PURE;
495 STDMETHOD(Initialize)(THIS_ LPCGUID lpcGuid) PURE;
496 };
497 #undef INTERFACE
498
499 #if !defined(__cplusplus) || defined(CINTERFACE)
500 /*** IUnknown methods ***/
501 #define IDirectSound_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
502 #define IDirectSound_AddRef(p) (p)->lpVtbl->AddRef(p)
503 #define IDirectSound_Release(p) (p)->lpVtbl->Release(p)
504 /*** IDirectSound methods ***/
505 #define IDirectSound_CreateSoundBuffer(p,a,b,c) (p)->lpVtbl->CreateSoundBuffer(p,a,b,c)
506 #define IDirectSound_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
507 #define IDirectSound_DuplicateSoundBuffer(p,a,b) (p)->lpVtbl->DuplicateSoundBuffer(p,a,b)
508 #define IDirectSound_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
509 #define IDirectSound_Compact(p) (p)->lpVtbl->Compact(p)
510 #define IDirectSound_GetSpeakerConfig(p,a) (p)->lpVtbl->GetSpeakerConfig(p,a)
511 #define IDirectSound_SetSpeakerConfig(p,a) (p)->lpVtbl->SetSpeakerConfig(p,a)
512 #define IDirectSound_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
513 #else
514 /*** IUnknown methods ***/
515 #define IDirectSound_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
516 #define IDirectSound_AddRef(p) (p)->AddRef()
517 #define IDirectSound_Release(p) (p)->Release()
518 /*** IDirectSound methods ***/
519 #define IDirectSound_CreateSoundBuffer(p,a,b,c) (p)->CreateSoundBuffer(a,b,c)
520 #define IDirectSound_GetCaps(p,a) (p)->GetCaps(a)
521 #define IDirectSound_DuplicateSoundBuffer(p,a,b) (p)->DuplicateSoundBuffer(a,b)
522 #define IDirectSound_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
523 #define IDirectSound_Compact(p) (p)->Compact()
524 #define IDirectSound_GetSpeakerConfig(p,a) (p)->GetSpeakerConfig(a)
525 #define IDirectSound_SetSpeakerConfig(p,a) (p)->SetSpeakerConfig(a)
526 #define IDirectSound_Initialize(p,a) (p)->Initialize(a)
527 #endif
528
529
530 /*****************************************************************************
531 * IDirectSound8 interface
532 */
533 #define INTERFACE IDirectSound8
DECLARE_INTERFACE_(IDirectSound8,IUnknown)534 DECLARE_INTERFACE_(IDirectSound8,IUnknown)
535 {
536 /*** IUnknown methods ***/
537 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
538 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
539 STDMETHOD_(ULONG,Release)(THIS) PURE;
540 /*** IDirectSound8 methods ***/
541 STDMETHOD(CreateSoundBuffer)(THIS_ LPCDSBUFFERDESC lpcDSBufferDesc, LPLPDIRECTSOUNDBUFFER lplpDirectSoundBuffer, IUnknown *pUnkOuter) PURE;
542 STDMETHOD(GetCaps)(THIS_ LPDSCAPS lpDSCaps) PURE;
543 STDMETHOD(DuplicateSoundBuffer)(THIS_ LPDIRECTSOUNDBUFFER lpDsbOriginal, LPLPDIRECTSOUNDBUFFER lplpDsbDuplicate) PURE;
544 STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwLevel) PURE;
545 STDMETHOD(Compact)(THIS) PURE;
546 STDMETHOD(GetSpeakerConfig)(THIS_ LPDWORD lpdwSpeakerConfig) PURE;
547 STDMETHOD(SetSpeakerConfig)(THIS_ DWORD dwSpeakerConfig) PURE;
548 STDMETHOD(Initialize)(THIS_ LPCGUID lpcGuid) PURE;
549 STDMETHOD(VerifyCertification)(THIS_ LPDWORD pdwCertified) PURE;
550 };
551 #undef INTERFACE
552
553 #if !defined(__cplusplus) || defined(CINTERFACE)
554 /*** IUnknown methods ***/
555 #define IDirectSound8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
556 #define IDirectSound8_AddRef(p) (p)->lpVtbl->AddRef(p)
557 #define IDirectSound8_Release(p) (p)->lpVtbl->Release(p)
558 /*** IDirectSound methods ***/
559 #define IDirectSound8_CreateSoundBuffer(p,a,b,c) (p)->lpVtbl->CreateSoundBuffer(p,a,b,c)
560 #define IDirectSound8_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
561 #define IDirectSound8_DuplicateSoundBuffer(p,a,b) (p)->lpVtbl->DuplicateSoundBuffer(p,a,b)
562 #define IDirectSound8_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
563 #define IDirectSound8_Compact(p) (p)->lpVtbl->Compact(p)
564 #define IDirectSound8_GetSpeakerConfig(p,a) (p)->lpVtbl->GetSpeakerConfig(p,a)
565 #define IDirectSound8_SetSpeakerConfig(p,a) (p)->lpVtbl->SetSpeakerConfig(p,a)
566 #define IDirectSound8_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
567 /*** IDirectSound8 methods ***/
568 #define IDirectSound8_VerifyCertification(p,a) (p)->lpVtbl->VerifyCertification(p,a)
569 #else
570 /*** IUnknown methods ***/
571 #define IDirectSound8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
572 #define IDirectSound8_AddRef(p) (p)->AddRef()
573 #define IDirectSound8_Release(p) (p)->Release()
574 /*** IDirectSound methods ***/
575 #define IDirectSound8_CreateSoundBuffer(p,a,b,c) (p)->CreateSoundBuffer(a,b,c)
576 #define IDirectSound8_GetCaps(p,a) (p)->GetCaps(a)
577 #define IDirectSound8_DuplicateSoundBuffer(p,a,b) (p)->DuplicateSoundBuffer(a,b)
578 #define IDirectSound8_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
579 #define IDirectSound8_Compact(p) (p)->Compact()
580 #define IDirectSound8_GetSpeakerConfig(p,a) (p)->GetSpeakerConfig(a)
581 #define IDirectSound8_SetSpeakerConfig(p,a) (p)->SetSpeakerConfig(a)
582 #define IDirectSound8_Initialize(p,a) (p)->Initialize(a)
583 /*** IDirectSound8 methods ***/
584 #define IDirectSound8_VerifyCertification(p,a) (p)->VerifyCertification(a)
585 #endif
586
587
588 /*****************************************************************************
589 * IDirectSoundBuffer interface
590 */
591 #define INTERFACE IDirectSoundBuffer
DECLARE_INTERFACE_(IDirectSoundBuffer,IUnknown)592 DECLARE_INTERFACE_(IDirectSoundBuffer,IUnknown)
593 {
594 /*** IUnknown methods ***/
595 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
596 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
597 STDMETHOD_(ULONG,Release)(THIS) PURE;
598 /*** IDirectSoundBuffer methods ***/
599 STDMETHOD(GetCaps)(THIS_ LPDSBCAPS lpDSBufferCaps) PURE;
600 STDMETHOD(GetCurrentPosition)(THIS_ LPDWORD lpdwCurrentPlayCursor, LPDWORD lpdwCurrentWriteCursor) PURE;
601 STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX lpwfxFormat, DWORD dwSizeAllocated, LPDWORD lpdwSizeWritten) PURE;
602 STDMETHOD(GetVolume)(THIS_ LPLONG lplVolume) PURE;
603 STDMETHOD(GetPan)(THIS_ LPLONG lplpan) PURE;
604 STDMETHOD(GetFrequency)(THIS_ LPDWORD lpdwFrequency) PURE;
605 STDMETHOD(GetStatus)(THIS_ LPDWORD lpdwStatus) PURE;
606 STDMETHOD(Initialize)(THIS_ LPDIRECTSOUND lpDirectSound, LPCDSBUFFERDESC lpcDSBufferDesc) PURE;
607 STDMETHOD(Lock)(THIS_ DWORD dwOffset, DWORD dwBytes, LPVOID *ppvAudioPtr1, LPDWORD pdwAudioBytes1, LPVOID *ppvAudioPtr2, LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE;
608 STDMETHOD(Play)(THIS_ DWORD dwReserved1, DWORD dwReserved2, DWORD dwFlags) PURE;
609 STDMETHOD(SetCurrentPosition)(THIS_ DWORD dwNewPosition) PURE;
610 STDMETHOD(SetFormat)(THIS_ LPCWAVEFORMATEX lpcfxFormat) PURE;
611 STDMETHOD(SetVolume)(THIS_ LONG lVolume) PURE;
612 STDMETHOD(SetPan)(THIS_ LONG lPan) PURE;
613 STDMETHOD(SetFrequency)(THIS_ DWORD dwFrequency) PURE;
614 STDMETHOD(Stop)(THIS) PURE;
615 STDMETHOD(Unlock)(THIS_ LPVOID pvAudioPtr1, DWORD dwAudioBytes1, LPVOID pvAudioPtr2, DWORD dwAudioPtr2) PURE;
616 STDMETHOD(Restore)(THIS) PURE;
617 };
618 #undef INTERFACE
619
620 #if !defined(__cplusplus) || defined(CINTERFACE)
621 /*** IUnknown methods ***/
622 #define IDirectSoundBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
623 #define IDirectSoundBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
624 #define IDirectSoundBuffer_Release(p) (p)->lpVtbl->Release(p)
625 /*** IDirectSoundBuffer methods ***/
626 #define IDirectSoundBuffer_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
627 #define IDirectSoundBuffer_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b)
628 #define IDirectSoundBuffer_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c)
629 #define IDirectSoundBuffer_GetVolume(p,a) (p)->lpVtbl->GetVolume(p,a)
630 #define IDirectSoundBuffer_GetPan(p,a) (p)->lpVtbl->GetPan(p,a)
631 #define IDirectSoundBuffer_GetFrequency(p,a) (p)->lpVtbl->GetFrequency(p,a)
632 #define IDirectSoundBuffer_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a)
633 #define IDirectSoundBuffer_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
634 #define IDirectSoundBuffer_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g)
635 #define IDirectSoundBuffer_Play(p,a,b,c) (p)->lpVtbl->Play(p,a,b,c)
636 #define IDirectSoundBuffer_SetCurrentPosition(p,a) (p)->lpVtbl->SetCurrentPosition(p,a)
637 #define IDirectSoundBuffer_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a)
638 #define IDirectSoundBuffer_SetVolume(p,a) (p)->lpVtbl->SetVolume(p,a)
639 #define IDirectSoundBuffer_SetPan(p,a) (p)->lpVtbl->SetPan(p,a)
640 #define IDirectSoundBuffer_SetFrequency(p,a) (p)->lpVtbl->SetFrequency(p,a)
641 #define IDirectSoundBuffer_Stop(p) (p)->lpVtbl->Stop(p)
642 #define IDirectSoundBuffer_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d)
643 #define IDirectSoundBuffer_Restore(p) (p)->lpVtbl->Restore(p)
644 #else
645 /*** IUnknown methods ***/
646 #define IDirectSoundBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
647 #define IDirectSoundBuffer_AddRef(p) (p)->AddRef()
648 #define IDirectSoundBuffer_Release(p) (p)->Release()
649 /*** IDirectSoundBuffer methods ***/
650 #define IDirectSoundBuffer_GetCaps(p,a) (p)->GetCaps(a)
651 #define IDirectSoundBuffer_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b)
652 #define IDirectSoundBuffer_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c)
653 #define IDirectSoundBuffer_GetVolume(p,a) (p)->GetVolume(a)
654 #define IDirectSoundBuffer_GetPan(p,a) (p)->GetPan(a)
655 #define IDirectSoundBuffer_GetFrequency(p,a) (p)->GetFrequency(a)
656 #define IDirectSoundBuffer_GetStatus(p,a) (p)->GetStatus(a)
657 #define IDirectSoundBuffer_Initialize(p,a,b) (p)->Initialize(a,b)
658 #define IDirectSoundBuffer_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g)
659 #define IDirectSoundBuffer_Play(p,a,b,c) (p)->Play(a,b,c)
660 #define IDirectSoundBuffer_SetCurrentPosition(p,a) (p)->SetCurrentPosition(a)
661 #define IDirectSoundBuffer_SetFormat(p,a) (p)->SetFormat(a)
662 #define IDirectSoundBuffer_SetVolume(p,a) (p)->SetVolume(a)
663 #define IDirectSoundBuffer_SetPan(p,a) (p)->SetPan(a)
664 #define IDirectSoundBuffer_SetFrequency(p,a) (p)->SetFrequency(a)
665 #define IDirectSoundBuffer_Stop(p) (p)->Stop()
666 #define IDirectSoundBuffer_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d)
667 #define IDirectSoundBuffer_Restore(p) (p)->Restore()
668 #endif
669
670
671 /*****************************************************************************
672 * IDirectSoundBuffer8 interface
673 */
674 #define INTERFACE IDirectSoundBuffer8
DECLARE_INTERFACE_(IDirectSoundBuffer8,IUnknown)675 DECLARE_INTERFACE_(IDirectSoundBuffer8,IUnknown)
676 {
677 /*** IUnknown methods ***/
678 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
679 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
680 STDMETHOD_(ULONG,Release)(THIS) PURE;
681 /*** IDirectSoundBuffer8 methods ***/
682 STDMETHOD(GetCaps)(THIS_ LPDSBCAPS lpDSBufferCaps) PURE;
683 STDMETHOD(GetCurrentPosition)(THIS_ LPDWORD lpdwCurrentPlayCursor, LPDWORD lpdwCurrentWriteCursor) PURE;
684 STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX lpwfxFormat, DWORD dwSizeAllocated, LPDWORD lpdwSizeWritten) PURE;
685 STDMETHOD(GetVolume)(THIS_ LPLONG lplVolume) PURE;
686 STDMETHOD(GetPan)(THIS_ LPLONG lplpan) PURE;
687 STDMETHOD(GetFrequency)(THIS_ LPDWORD lpdwFrequency) PURE;
688 STDMETHOD(GetStatus)(THIS_ LPDWORD lpdwStatus) PURE;
689 STDMETHOD(Initialize)(THIS_ LPDIRECTSOUND lpDirectSound, LPCDSBUFFERDESC lpcDSBufferDesc) PURE;
690 STDMETHOD(Lock)(THIS_ DWORD dwOffset, DWORD dwBytes, LPVOID *ppvAudioPtr1, LPDWORD pdwAudioBytes1, LPVOID *ppvAudioPtr2, LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE;
691 STDMETHOD(Play)(THIS_ DWORD dwReserved1, DWORD dwReserved2, DWORD dwFlags) PURE;
692 STDMETHOD(SetCurrentPosition)(THIS_ DWORD dwNewPosition) PURE;
693 STDMETHOD(SetFormat)(THIS_ LPCWAVEFORMATEX lpcfxFormat) PURE;
694 STDMETHOD(SetVolume)(THIS_ LONG lVolume) PURE;
695 STDMETHOD(SetPan)(THIS_ LONG lPan) PURE;
696 STDMETHOD(SetFrequency)(THIS_ DWORD dwFrequency) PURE;
697 STDMETHOD(Stop)(THIS) PURE;
698 STDMETHOD(Unlock)(THIS_ LPVOID pvAudioPtr1, DWORD dwAudioBytes1, LPVOID pvAudioPtr2, DWORD dwAudioPtr2) PURE;
699 STDMETHOD(Restore)(THIS) PURE;
700 STDMETHOD(SetFX)(THIS_ DWORD dwEffectsCount, LPDSEFFECTDESC pDSFXDesc, LPDWORD pdwResultCodes) PURE;
701 STDMETHOD(AcquireResources)(THIS_ DWORD dwFlags, DWORD dwEffectsCount, LPDWORD pdwResultCodes) PURE;
702 STDMETHOD(GetObjectInPath)(THIS_ REFGUID rguidObject, DWORD dwIndex, REFGUID rguidInterface, LPVOID *ppObject) PURE;
703 };
704 #undef INTERFACE
705
706 DEFINE_GUID(GUID_All_Objects, 0xaa114de5, 0xc262, 0x4169, 0xa1, 0xc8, 0x23, 0xd6, 0x98, 0xcc, 0x73, 0xb5);
707
708 #if !defined(__cplusplus) || defined(CINTERFACE)
709 /*** IUnknown methods ***/
710 #define IDirectSoundBuffer8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
711 #define IDirectSoundBuffer8_AddRef(p) (p)->lpVtbl->AddRef(p)
712 #define IDirectSoundBuffer8_Release(p) (p)->lpVtbl->Release(p)
713 /*** IDirectSoundBuffer methods ***/
714 #define IDirectSoundBuffer8_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
715 #define IDirectSoundBuffer8_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b)
716 #define IDirectSoundBuffer8_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c)
717 #define IDirectSoundBuffer8_GetVolume(p,a) (p)->lpVtbl->GetVolume(p,a)
718 #define IDirectSoundBuffer8_GetPan(p,a) (p)->lpVtbl->GetPan(p,a)
719 #define IDirectSoundBuffer8_GetFrequency(p,a) (p)->lpVtbl->GetFrequency(p,a)
720 #define IDirectSoundBuffer8_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a)
721 #define IDirectSoundBuffer8_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
722 #define IDirectSoundBuffer8_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g)
723 #define IDirectSoundBuffer8_Play(p,a,b,c) (p)->lpVtbl->Play(p,a,b,c)
724 #define IDirectSoundBuffer8_SetCurrentPosition(p,a) (p)->lpVtbl->SetCurrentPosition(p,a)
725 #define IDirectSoundBuffer8_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a)
726 #define IDirectSoundBuffer8_SetVolume(p,a) (p)->lpVtbl->SetVolume(p,a)
727 #define IDirectSoundBuffer8_SetPan(p,a) (p)->lpVtbl->SetPan(p,a)
728 #define IDirectSoundBuffer8_SetFrequency(p,a) (p)->lpVtbl->SetFrequency(p,a)
729 #define IDirectSoundBuffer8_Stop(p) (p)->lpVtbl->Stop(p)
730 #define IDirectSoundBuffer8_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d)
731 #define IDirectSoundBuffer8_Restore(p) (p)->lpVtbl->Restore(p)
732 /*** IDirectSoundBuffer8 methods ***/
733 #define IDirectSoundBuffer8_SetFX(p,a,b,c) (p)->lpVtbl->SetFX(p,a,b,c)
734 #define IDirectSoundBuffer8_AcquireResources(p,a,b,c) (p)->lpVtbl->AcquireResources(p,a,b,c)
735 #define IDirectSoundBuffer8_GetObjectInPath(p,a,b,c,d) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d)
736 #else
737 /*** IUnknown methods ***/
738 #define IDirectSoundBuffer8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
739 #define IDirectSoundBuffer8_AddRef(p) (p)->AddRef()
740 #define IDirectSoundBuffer8_Release(p) (p)->Release()
741 /*** IDirectSoundBuffer methods ***/
742 #define IDirectSoundBuffer8_GetCaps(p,a) (p)->GetCaps(a)
743 #define IDirectSoundBuffer8_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b)
744 #define IDirectSoundBuffer8_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c)
745 #define IDirectSoundBuffer8_GetVolume(p,a) (p)->GetVolume(a)
746 #define IDirectSoundBuffer8_GetPan(p,a) (p)->GetPan(a)
747 #define IDirectSoundBuffer8_GetFrequency(p,a) (p)->GetFrequency(a)
748 #define IDirectSoundBuffer8_GetStatus(p,a) (p)->GetStatus(a)
749 #define IDirectSoundBuffer8_Initialize(p,a,b) (p)->Initialize(a,b)
750 #define IDirectSoundBuffer8_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g)
751 #define IDirectSoundBuffer8_Play(p,a,b,c) (p)->Play(a,b,c)
752 #define IDirectSoundBuffer8_SetCurrentPosition(p,a) (p)->SetCurrentPosition(a)
753 #define IDirectSoundBuffer8_SetFormat(p,a) (p)->SetFormat(a)
754 #define IDirectSoundBuffer8_SetVolume(p,a) (p)->SetVolume(a)
755 #define IDirectSoundBuffer8_SetPan(p,a) (p)->SetPan(a)
756 #define IDirectSoundBuffer8_SetFrequency(p,a) (p)->SetFrequency(a)
757 #define IDirectSoundBuffer8_Stop(p) (p)->Stop()
758 #define IDirectSoundBuffer8_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d)
759 #define IDirectSoundBuffer8_Restore(p) (p)->Restore()
760 /*** IDirectSoundBuffer8 methods ***/
761 #define IDirectSoundBuffer8_SetFX(p,a,b,c) (p)->SetFX(a,b,c)
762 #define IDirectSoundBuffer8_AcquireResources(p,a,b,c) (p)->AcquireResources(a,b,c)
763 #define IDirectSoundBuffer8_GetObjectInPath(p,a,b,c,d) (p)->GetObjectInPath(a,b,c,d)
764 #endif
765
766
767 /*****************************************************************************
768 * IDirectSoundCapture interface
769 */
770 #define INTERFACE IDirectSoundCapture
DECLARE_INTERFACE_(IDirectSoundCapture,IUnknown)771 DECLARE_INTERFACE_(IDirectSoundCapture,IUnknown)
772 {
773 /*** IUnknown methods ***/
774 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
775 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
776 STDMETHOD_(ULONG,Release)(THIS) PURE;
777 /*** IDirectSoundCapture methods ***/
778 STDMETHOD(CreateCaptureBuffer)(THIS_ LPCDSCBUFFERDESC lpcDSCBufferDesc,LPDIRECTSOUNDCAPTUREBUFFER *lplpDSCaptureBuffer, LPUNKNOWN pUnk) PURE;
779 STDMETHOD(GetCaps)(THIS_ LPDSCCAPS lpDSCCaps) PURE;
780 STDMETHOD(Initialize)(THIS_ LPCGUID lpcGUID) PURE;
781 };
782 #undef INTERFACE
783
784 #if !defined(__cplusplus) || defined(CINTERFACE)
785 /*** IUnknown methods ***/
786 #define IDirectSoundCapture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
787 #define IDirectSoundCapture_AddRef(p) (p)->lpVtbl->AddRef(p)
788 #define IDirectSoundCapture_Release(p) (p)->lpVtbl->Release(p)
789 /*** IDirectSoundCapture methods ***/
790 #define IDirectSoundCapture_CreateCaptureBuffer(p,a,b,c) (p)->lpVtbl->CreateCaptureBuffer(p,a,b,c)
791 #define IDirectSoundCapture_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
792 #define IDirectSoundCapture_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
793 #else
794 /*** IUnknown methods ***/
795 #define IDirectSoundCapture_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
796 #define IDirectSoundCapture_AddRef(p) (p)->AddRef()
797 #define IDirectSoundCapture_Release(p) (p)->Release()
798 /*** IDirectSoundCapture methods ***/
799 #define IDirectSoundCapture_CreateCaptureBuffer(p,a,b,c) (p)->CreateCaptureBuffer(a,b,c)
800 #define IDirectSoundCapture_GetCaps(p,a) (p)->GetCaps(a)
801 #define IDirectSoundCapture_Initialize(p,a) (p)->Initialize(a)
802 #endif
803
804 /*****************************************************************************
805 * IDirectSoundCaptureBuffer interface
806 */
807 #define INTERFACE IDirectSoundCaptureBuffer
DECLARE_INTERFACE_(IDirectSoundCaptureBuffer,IUnknown)808 DECLARE_INTERFACE_(IDirectSoundCaptureBuffer,IUnknown)
809 {
810 /*** IUnknown methods ***/
811 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
812 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
813 STDMETHOD_(ULONG,Release)(THIS) PURE;
814 /*** IDirectSoundCaptureBuffer methods ***/
815 STDMETHOD(GetCaps)(THIS_ LPDSCBCAPS lpDSCBCaps) PURE;
816 STDMETHOD(GetCurrentPosition)(THIS_ LPDWORD lpdwCapturePosition,LPDWORD lpdwReadPosition) PURE;
817 STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX lpwfxFormat, DWORD dwSizeAllocated, LPDWORD lpdwSizeWritten) PURE;
818 STDMETHOD(GetStatus)(THIS_ LPDWORD lpdwStatus) PURE;
819 STDMETHOD(Initialize)(THIS_ LPDIRECTSOUNDCAPTURE lpDSC, LPCDSCBUFFERDESC lpcDSCBDesc) PURE;
820 STDMETHOD(Lock)(THIS_ DWORD dwReadCusor, DWORD dwReadBytes, LPVOID *lplpvAudioPtr1, LPDWORD lpdwAudioBytes1, LPVOID *lplpvAudioPtr2, LPDWORD lpdwAudioBytes2, DWORD dwFlags) PURE;
821 STDMETHOD(Start)(THIS_ DWORD dwFlags) PURE;
822 STDMETHOD(Stop)(THIS) PURE;
823 STDMETHOD(Unlock)(THIS_ LPVOID lpvAudioPtr1, DWORD dwAudioBytes1, LPVOID lpvAudioPtr2, DWORD dwAudioBytes2) PURE;
824 };
825 #undef INTERFACE
826
827 #if !defined(__cplusplus) || defined(CINTERFACE)
828 /*** IUnknown methods ***/
829 #define IDirectSoundCaptureBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
830 #define IDirectSoundCaptureBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
831 #define IDirectSoundCaptureBuffer_Release(p) (p)->lpVtbl->Release(p)
832 /*** IDirectSoundCaptureBuffer methods ***/
833 #define IDirectSoundCaptureBuffer_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
834 #define IDirectSoundCaptureBuffer_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b)
835 #define IDirectSoundCaptureBuffer_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c)
836 #define IDirectSoundCaptureBuffer_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a)
837 #define IDirectSoundCaptureBuffer_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
838 #define IDirectSoundCaptureBuffer_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g)
839 #define IDirectSoundCaptureBuffer_Start(p,a) (p)->lpVtbl->Start(p,a)
840 #define IDirectSoundCaptureBuffer_Stop(p) (p)->lpVtbl->Stop(p)
841 #define IDirectSoundCaptureBuffer_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d)
842 #else
843 /*** IUnknown methods ***/
844 #define IDirectSoundCaptureBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
845 #define IDirectSoundCaptureBuffer_AddRef(p) (p)->AddRef()
846 #define IDirectSoundCaptureBuffer_Release(p) (p)->Release()
847 /*** IDirectSoundCaptureBuffer methods ***/
848 #define IDirectSoundCaptureBuffer_GetCaps(p,a) (p)->GetCaps(a)
849 #define IDirectSoundCaptureBuffer_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b)
850 #define IDirectSoundCaptureBuffer_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c)
851 #define IDirectSoundCaptureBuffer_GetStatus(p,a) (p)->GetStatus(a)
852 #define IDirectSoundCaptureBuffer_Initialize(p,a,b) (p)->Initialize(a,b)
853 #define IDirectSoundCaptureBuffer_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g)
854 #define IDirectSoundCaptureBuffer_Start(p,a) (p)->Start(a)
855 #define IDirectSoundCaptureBuffer_Stop(p) (p)->Stop()
856 #define IDirectSoundCaptureBuffer_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d)
857 #endif
858
859 /*****************************************************************************
860 * IDirectSoundCaptureBuffer8 interface
861 */
862 #define INTERFACE IDirectSoundCaptureBuffer8
DECLARE_INTERFACE_(IDirectSoundCaptureBuffer8,IDirectSoundCaptureBuffer)863 DECLARE_INTERFACE_(IDirectSoundCaptureBuffer8,IDirectSoundCaptureBuffer)
864 {
865 /*** IUnknown methods ***/
866 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
867 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
868 STDMETHOD_(ULONG,Release)(THIS) PURE;
869 /*** IDirectSoundCaptureBuffer methods ***/
870 STDMETHOD(GetCaps)(THIS_ LPDSCBCAPS lpDSCBCaps) PURE;
871 STDMETHOD(GetCurrentPosition)(THIS_ LPDWORD lpdwCapturePosition,LPDWORD lpdwReadPosition) PURE;
872 STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX lpwfxFormat, DWORD dwSizeAllocated, LPDWORD lpdwSizeWritten) PURE;
873 STDMETHOD(GetStatus)(THIS_ LPDWORD lpdwStatus) PURE;
874 STDMETHOD(Initialize)(THIS_ LPDIRECTSOUNDCAPTURE lpDSC, LPCDSCBUFFERDESC lpcDSCBDesc) PURE;
875 STDMETHOD(Lock)(THIS_ DWORD dwReadCusor, DWORD dwReadBytes, LPVOID *lplpvAudioPtr1, LPDWORD lpdwAudioBytes1, LPVOID *lplpvAudioPtr2, LPDWORD lpdwAudioBytes2, DWORD dwFlags) PURE;
876 STDMETHOD(Start)(THIS_ DWORD dwFlags) PURE;
877 STDMETHOD(Stop)(THIS) PURE;
878 STDMETHOD(Unlock)(THIS_ LPVOID lpvAudioPtr1, DWORD dwAudioBytes1, LPVOID lpvAudioPtr2, DWORD dwAudioBytes2) PURE;
879 /*** IDirectSoundCaptureBuffer8 methods ***/
880 STDMETHOD(GetObjectInPath)(THIS_ REFGUID rguidObject, DWORD dwIndex, REFGUID rguidInterface, LPVOID *ppObject) PURE;
881 STDMETHOD(GetFXStatus)(THIS_ DWORD dwFXCount, LPDWORD pdwFXStatus) PURE;
882 };
883 #undef INTERFACE
884
885 #if !defined(__cplusplus) || defined(CINTERFACE)
886 /*** IUnknown methods ***/
887 #define IDirectSoundCaptureBuffer8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
888 #define IDirectSoundCaptureBuffer8_AddRef(p) (p)->lpVtbl->AddRef(p)
889 #define IDirectSoundCaptureBuffer8_Release(p) (p)->lpVtbl->Release(p)
890 /*** IDirectSoundCaptureBuffer methods ***/
891 #define IDirectSoundCaptureBuffer8_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
892 #define IDirectSoundCaptureBuffer8_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b)
893 #define IDirectSoundCaptureBuffer8_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c)
894 #define IDirectSoundCaptureBuffer8_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a)
895 #define IDirectSoundCaptureBuffer8_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
896 #define IDirectSoundCaptureBuffer8_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g)
897 #define IDirectSoundCaptureBuffer8_Start(p,a) (p)->lpVtbl->Start(p,a)
898 #define IDirectSoundCaptureBuffer8_Stop(p) (p)->lpVtbl->Stop(p)
899 #define IDirectSoundCaptureBuffer8_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d)
900 /*** IDirectSoundCaptureBuffer8 methods ***/
901 #define IDirectSoundCaptureBuffer8_GetObjectInPath(p,a,b,c,d) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d)
902 #define IDirectSoundCaptureBuffer8_GetFXStatus(p,a,b) (p)->lpVtbl->GetFXStatus(p,a,b)
903 #else
904 /*** IUnknown methods ***/
905 #define IDirectSoundCaptureBuffer8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
906 #define IDirectSoundCaptureBuffer8_AddRef(p) (p)->AddRef()
907 #define IDirectSoundCaptureBuffer8_Release(p) (p)->Release()
908 /*** IDirectSoundCaptureBuffer methods ***/
909 #define IDirectSoundCaptureBuffer8_GetCaps(p,a) (p)->GetCaps(a)
910 #define IDirectSoundCaptureBuffer8_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b)
911 #define IDirectSoundCaptureBuffer8_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c)
912 #define IDirectSoundCaptureBuffer8_GetStatus(p,a) (p)->GetStatus(a)
913 #define IDirectSoundCaptureBuffer8_Initialize(p,a,b) (p)->Initialize(a,b)
914 #define IDirectSoundCaptureBuffer8_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g)
915 #define IDirectSoundCaptureBuffer8_Start(p,a) (p)->Start(a)
916 #define IDirectSoundCaptureBuffer8_Stop(p) (p)->Stop()
917 #define IDirectSoundCaptureBuffer8_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d)
918 /*** IDirectSoundCaptureBuffer8 methods ***/
919 #define IDirectSoundCaptureBuffer8_GetObjectInPath(p,a,b,c,d) (p)->GetObjectInPath(a,b,c,d)
920 #define IDirectSoundCaptureBuffer8_GetFXStatus(p,a,b) (p)->GetFXStatus(a,b)
921 #endif
922
923 /*****************************************************************************
924 * IDirectSoundNotify interface
925 */
926 #define WINE_NOBUFFER 0x80000000
927
928 #define DSBPN_OFFSETSTOP -1
929
930 #define INTERFACE IDirectSoundNotify
DECLARE_INTERFACE_(IDirectSoundNotify,IUnknown)931 DECLARE_INTERFACE_(IDirectSoundNotify,IUnknown)
932 {
933 /*** IUnknown methods ***/
934 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
935 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
936 STDMETHOD_(ULONG,Release)(THIS) PURE;
937 /*** IDirectSoundNotify methods ***/
938 STDMETHOD(SetNotificationPositions)(THIS_ DWORD cPositionNotifies, LPCDSBPOSITIONNOTIFY lpcPositionNotifies) PURE;
939 };
940 #undef INTERFACE
941
942 #if !defined(__cplusplus) || defined(CINTERFACE)
943 /*** IUnknown methods ***/
944 #define IDirectSoundNotify_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
945 #define IDirectSoundNotify_AddRef(p) (p)->lpVtbl->AddRef(p)
946 #define IDirectSoundNotify_Release(p) (p)->lpVtbl->Release(p)
947 /*** IDirectSoundNotify methods ***/
948 #define IDirectSoundNotify_SetNotificationPositions(p,a,b) (p)->lpVtbl->SetNotificationPositions(p,a,b)
949 #else
950 /*** IUnknown methods ***/
951 #define IDirectSoundNotify_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
952 #define IDirectSoundNotify_AddRef(p) (p)->AddRef()
953 #define IDirectSoundNotify_Release(p) (p)->Release()
954 /*** IDirectSoundNotify methods ***/
955 #define IDirectSoundNotify_SetNotificationPositions(p,a,b) (p)->SetNotificationPositions(a,b)
956 #endif
957
958
959 /*****************************************************************************
960 * IDirectSound3DListener interface
961 */
962 #define DS3DMODE_NORMAL 0x00000000
963 #define DS3DMODE_HEADRELATIVE 0x00000001
964 #define DS3DMODE_DISABLE 0x00000002
965
966 #define DS3D_IMMEDIATE 0x00000000
967 #define DS3D_DEFERRED 0x00000001
968
969 #define DS3D_MINDISTANCEFACTOR FLT_MIN
970 #define DS3D_MAXDISTANCEFACTOR FLT_MAX
971 #define DS3D_DEFAULTDISTANCEFACTOR 1.0f
972
973 #define DS3D_MINROLLOFFFACTOR 0.0f
974 #define DS3D_MAXROLLOFFFACTOR 10.0f
975 #define DS3D_DEFAULTROLLOFFFACTOR 1.0f
976
977 #define DS3D_MINDOPPLERFACTOR 0.0f
978 #define DS3D_MAXDOPPLERFACTOR 10.0f
979 #define DS3D_DEFAULTDOPPLERFACTOR 1.0f
980
981 #define DS3D_DEFAULTMINDISTANCE 1.0f
982 #define DS3D_DEFAULTMAXDISTANCE 1000000000.0f
983
984 #define DS3D_MINCONEANGLE 0
985 #define DS3D_MAXCONEANGLE 360
986 #define DS3D_DEFAULTCONEANGLE 360
987
988 #define DS3D_DEFAULTCONEOUTSIDEVOLUME DSBVOLUME_MAX
989
990 typedef struct _DS3DLISTENER {
991 DWORD dwSize;
992 D3DVECTOR vPosition;
993 D3DVECTOR vVelocity;
994 D3DVECTOR vOrientFront;
995 D3DVECTOR vOrientTop;
996 D3DVALUE flDistanceFactor;
997 D3DVALUE flRolloffFactor;
998 D3DVALUE flDopplerFactor;
999 } DS3DLISTENER, *LPDS3DLISTENER;
1000
1001 typedef const DS3DLISTENER *LPCDS3DLISTENER;
1002
1003 #define INTERFACE IDirectSound3DListener
DECLARE_INTERFACE_(IDirectSound3DListener,IUnknown)1004 DECLARE_INTERFACE_(IDirectSound3DListener,IUnknown)
1005 {
1006 /*** IUnknown methods ***/
1007 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1008 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1009 STDMETHOD_(ULONG,Release)(THIS) PURE;
1010 /*** IDirectSound3DListener methods ***/
1011 STDMETHOD(GetAllParameters)(THIS_ LPDS3DLISTENER lpListener) PURE;
1012 STDMETHOD(GetDistanceFactor)(THIS_ LPD3DVALUE lpflDistanceFactor) PURE;
1013 STDMETHOD(GetDopplerFactor)(THIS_ LPD3DVALUE lpflDopplerFactor) PURE;
1014 STDMETHOD(GetOrientation)(THIS_ LPD3DVECTOR lpvOrientFront, LPD3DVECTOR lpvOrientTop) PURE;
1015 STDMETHOD(GetPosition)(THIS_ LPD3DVECTOR lpvPosition) PURE;
1016 STDMETHOD(GetRolloffFactor)(THIS_ LPD3DVALUE lpflRolloffFactor) PURE;
1017 STDMETHOD(GetVelocity)(THIS_ LPD3DVECTOR lpvVelocity) PURE;
1018 STDMETHOD(SetAllParameters)(THIS_ LPCDS3DLISTENER lpcListener, DWORD dwApply) PURE;
1019 STDMETHOD(SetDistanceFactor)(THIS_ D3DVALUE flDistanceFactor, DWORD dwApply) PURE;
1020 STDMETHOD(SetDopplerFactor)(THIS_ D3DVALUE flDopplerFactor, DWORD dwApply) PURE;
1021 STDMETHOD(SetOrientation)(THIS_ D3DVALUE xFront, D3DVALUE yFront, D3DVALUE zFront, D3DVALUE xTop, D3DVALUE yTop, D3DVALUE zTop, DWORD dwApply) PURE;
1022 STDMETHOD(SetPosition)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE;
1023 STDMETHOD(SetRolloffFactor)(THIS_ D3DVALUE flRolloffFactor, DWORD dwApply) PURE;
1024 STDMETHOD(SetVelocity)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE;
1025 STDMETHOD(CommitDeferredSettings)(THIS) PURE;
1026 };
1027 #undef INTERFACE
1028
1029 #if !defined(__cplusplus) || defined(CINTERFACE)
1030 /*** IUnknown methods ***/
1031 #define IDirectSound3DListener_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1032 #define IDirectSound3DListener_AddRef(p) (p)->lpVtbl->AddRef(p)
1033 #define IDirectSound3DListener_Release(p) (p)->lpVtbl->Release(p)
1034 /*** IDirectSound3DListener methods ***/
1035 #define IDirectSound3DListener_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
1036 #define IDirectSound3DListener_GetDistanceFactor(p,a) (p)->lpVtbl->GetDistanceFactor(p,a)
1037 #define IDirectSound3DListener_GetDopplerFactor(p,a) (p)->lpVtbl->GetDopplerFactor(p,a)
1038 #define IDirectSound3DListener_GetOrientation(p,a,b) (p)->lpVtbl->GetOrientation(p,a,b)
1039 #define IDirectSound3DListener_GetPosition(p,a) (p)->lpVtbl->GetPosition(p,a)
1040 #define IDirectSound3DListener_GetRolloffFactor(p,a) (p)->lpVtbl->GetRolloffFactor(p,a)
1041 #define IDirectSound3DListener_GetVelocity(p,a) (p)->lpVtbl->GetVelocity(p,a)
1042 #define IDirectSound3DListener_SetAllParameters(p,a,b) (p)->lpVtbl->SetAllParameters(p,a,b)
1043 #define IDirectSound3DListener_SetDistanceFactor(p,a,b) (p)->lpVtbl->SetDistanceFactor(p,a,b)
1044 #define IDirectSound3DListener_SetDopplerFactor(p,a,b) (p)->lpVtbl->SetDopplerFactor(p,a,b)
1045 #define IDirectSound3DListener_SetOrientation(p,a,b,c,d,e,f,g) (p)->lpVtbl->SetOrientation(p,a,b,c,d,e,f,g)
1046 #define IDirectSound3DListener_SetPosition(p,a,b,c,d) (p)->lpVtbl->SetPosition(p,a,b,c,d)
1047 #define IDirectSound3DListener_SetRolloffFactor(p,a,b) (p)->lpVtbl->SetRolloffFactor(p,a,b)
1048 #define IDirectSound3DListener_SetVelocity(p,a,b,c,d) (p)->lpVtbl->SetVelocity(p,a,b,c,d)
1049 #define IDirectSound3DListener_CommitDeferredSettings(p) (p)->lpVtbl->CommitDeferredSettings(p)
1050 #else
1051 /*** IUnknown methods ***/
1052 #define IDirectSound3DListener_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1053 #define IDirectSound3DListener_AddRef(p) (p)->AddRef()
1054 #define IDirectSound3DListener_Release(p) (p)->Release()
1055 /*** IDirectSound3DListener methods ***/
1056 #define IDirectSound3DListener_GetAllParameters(p,a) (p)->GetAllParameters(a)
1057 #define IDirectSound3DListener_GetDistanceFactor(p,a) (p)->GetDistanceFactor(a)
1058 #define IDirectSound3DListener_GetDopplerFactor(p,a) (p)->GetDopplerFactor(a)
1059 #define IDirectSound3DListener_GetOrientation(p,a,b) (p)->GetOrientation(a,b)
1060 #define IDirectSound3DListener_GetPosition(p,a) (p)->GetPosition(a)
1061 #define IDirectSound3DListener_GetRolloffFactor(p,a) (p)->GetRolloffFactor(a)
1062 #define IDirectSound3DListener_GetVelocity(p,a) (p)->GetVelocity(a)
1063 #define IDirectSound3DListener_SetAllParameters(p,a,b) (p)->SetAllParameters(a,b)
1064 #define IDirectSound3DListener_SetDistanceFactor(p,a,b) (p)->SetDistanceFactor(a,b)
1065 #define IDirectSound3DListener_SetDopplerFactor(p,a,b) (p)->SetDopplerFactor(a,b)
1066 #define IDirectSound3DListener_SetOrientation(p,a,b,c,d,e,f,g) (p)->SetOrientation(a,b,c,d,e,f,g)
1067 #define IDirectSound3DListener_SetPosition(p,a,b,c,d) (p)->SetPosition(a,b,c,d)
1068 #define IDirectSound3DListener_SetRolloffFactor(p,a,b) (p)->SetRolloffFactor(a,b)
1069 #define IDirectSound3DListener_SetVelocity(p,a,b,c,d) (p)->SetVelocity(a,b,c,d)
1070 #define IDirectSound3DListener_CommitDeferredSettings(p) (p)->CommitDeferredSettings()
1071 #endif
1072 #define IDirectSound3DListener8 IDirectSound3DListener
1073
1074 /*****************************************************************************
1075 * IDirectSound3DBuffer interface
1076 */
1077 typedef struct _DS3DBUFFER {
1078 DWORD dwSize;
1079 D3DVECTOR vPosition;
1080 D3DVECTOR vVelocity;
1081 DWORD dwInsideConeAngle;
1082 DWORD dwOutsideConeAngle;
1083 D3DVECTOR vConeOrientation;
1084 LONG lConeOutsideVolume;
1085 D3DVALUE flMinDistance;
1086 D3DVALUE flMaxDistance;
1087 DWORD dwMode;
1088 } DS3DBUFFER, *LPDS3DBUFFER;
1089
1090 typedef const DS3DBUFFER *LPCDS3DBUFFER;
1091
1092 #define INTERFACE IDirectSound3DBuffer
DECLARE_INTERFACE_(IDirectSound3DBuffer,IUnknown)1093 DECLARE_INTERFACE_(IDirectSound3DBuffer,IUnknown)
1094 {
1095 /*** IUnknown methods ***/
1096 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1097 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1098 STDMETHOD_(ULONG,Release)(THIS) PURE;
1099 /*** IDirectSound3DBuffer methods ***/
1100 STDMETHOD(GetAllParameters)(THIS_ LPDS3DBUFFER lpDs3dBuffer) PURE;
1101 STDMETHOD(GetConeAngles)(THIS_ LPDWORD lpdwInsideConeAngle, LPDWORD lpdwOutsideConeAngle) PURE;
1102 STDMETHOD(GetConeOrientation)(THIS_ LPD3DVECTOR lpvOrientation) PURE;
1103 STDMETHOD(GetConeOutsideVolume)(THIS_ LPLONG lplConeOutsideVolume) PURE;
1104 STDMETHOD(GetMaxDistance)(THIS_ LPD3DVALUE lpflMaxDistance) PURE;
1105 STDMETHOD(GetMinDistance)(THIS_ LPD3DVALUE lpflMinDistance) PURE;
1106 STDMETHOD(GetMode)(THIS_ LPDWORD lpwdMode) PURE;
1107 STDMETHOD(GetPosition)(THIS_ LPD3DVECTOR lpvPosition) PURE;
1108 STDMETHOD(GetVelocity)(THIS_ LPD3DVECTOR lpvVelocity) PURE;
1109 STDMETHOD(SetAllParameters)(THIS_ LPCDS3DBUFFER lpcDs3dBuffer, DWORD dwApply) PURE;
1110 STDMETHOD(SetConeAngles)(THIS_ DWORD dwInsideConeAngle, DWORD dwOutsideConeAngle, DWORD dwApply) PURE;
1111 STDMETHOD(SetConeOrientation)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE;
1112 STDMETHOD(SetConeOutsideVolume)(THIS_ LONG lConeOutsideVolume, DWORD dwApply) PURE;
1113 STDMETHOD(SetMaxDistance)(THIS_ D3DVALUE flMaxDistance, DWORD dwApply) PURE;
1114 STDMETHOD(SetMinDistance)(THIS_ D3DVALUE flMinDistance, DWORD dwApply) PURE;
1115 STDMETHOD(SetMode)(THIS_ DWORD dwMode, DWORD dwApply) PURE;
1116 STDMETHOD(SetPosition)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE;
1117 STDMETHOD(SetVelocity)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE;
1118 };
1119 #undef INTERFACE
1120
1121 #if !defined(__cplusplus) || defined(CINTERFACE)
1122 /*** IUnknown methods ***/
1123 #define IDirectSound3DBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1124 #define IDirectSound3DBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
1125 #define IDirectSound3DBuffer_Release(p) (p)->lpVtbl->Release(p)
1126 /*** IDirectSound3DBuffer methods ***/
1127 #define IDirectSound3DBuffer_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
1128 #define IDirectSound3DBuffer_GetConeAngles(p,a,b) (p)->lpVtbl->GetConeAngles(p,a,b)
1129 #define IDirectSound3DBuffer_GetConeOrientation(p,a) (p)->lpVtbl->GetConeOrientation(p,a)
1130 #define IDirectSound3DBuffer_GetConeOutsideVolume(p,a) (p)->lpVtbl->GetConeOutsideVolume(p,a)
1131 #define IDirectSound3DBuffer_GetMaxDistance(p,a) (p)->lpVtbl->GetMaxDistance(p,a)
1132 #define IDirectSound3DBuffer_GetMinDistance(p,a) (p)->lpVtbl->GetMinDistance(p,a)
1133 #define IDirectSound3DBuffer_GetMode(p,a) (p)->lpVtbl->GetMode(p,a)
1134 #define IDirectSound3DBuffer_GetPosition(p,a) (p)->lpVtbl->GetPosition(p,a)
1135 #define IDirectSound3DBuffer_GetVelocity(p,a) (p)->lpVtbl->GetVelocity(p,a)
1136 #define IDirectSound3DBuffer_SetAllParameters(p,a,b) (p)->lpVtbl->SetAllParameters(p,a,b)
1137 #define IDirectSound3DBuffer_SetConeAngles(p,a,b,c) (p)->lpVtbl->SetConeAngles(p,a,b,c)
1138 #define IDirectSound3DBuffer_SetConeOrientation(p,a,b,c,d) (p)->lpVtbl->SetConeOrientation(p,a,b,c,d)
1139 #define IDirectSound3DBuffer_SetConeOutsideVolume(p,a,b) (p)->lpVtbl->SetConeOutsideVolume(p,a,b)
1140 #define IDirectSound3DBuffer_SetMaxDistance(p,a,b) (p)->lpVtbl->SetMaxDistance(p,a,b)
1141 #define IDirectSound3DBuffer_SetMinDistance(p,a,b) (p)->lpVtbl->SetMinDistance(p,a,b)
1142 #define IDirectSound3DBuffer_SetMode(p,a,b) (p)->lpVtbl->SetMode(p,a,b)
1143 #define IDirectSound3DBuffer_SetPosition(p,a,b,c,d) (p)->lpVtbl->SetPosition(p,a,b,c,d)
1144 #define IDirectSound3DBuffer_SetVelocity(p,a,b,c,d) (p)->lpVtbl->SetVelocity(p,a,b,c,d)
1145 #else
1146 /*** IUnknown methods ***/
1147 #define IDirectSound3DBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1148 #define IDirectSound3DBuffer_AddRef(p) (p)->AddRef()
1149 #define IDirectSound3DBuffer_Release(p) (p)->Release()
1150 /*** IDirectSound3DBuffer methods ***/
1151 #define IDirectSound3DBuffer_GetAllParameters(p,a) (p)->GetAllParameters(a)
1152 #define IDirectSound3DBuffer_GetConeAngles(p,a,b) (p)->GetConeAngles(a,b)
1153 #define IDirectSound3DBuffer_GetConeOrientation(p,a) (p)->GetConeOrientation(a)
1154 #define IDirectSound3DBuffer_GetConeOutsideVolume(p,a) (p)->GetConeOutsideVolume(a)
1155 #define IDirectSound3DBuffer_GetMaxDistance(p,a) (p)->GetMaxDistance(a)
1156 #define IDirectSound3DBuffer_GetMinDistance(p,a) (p)->GetMinDistance(a)
1157 #define IDirectSound3DBuffer_GetMode(p,a) (p)->GetMode(a)
1158 #define IDirectSound3DBuffer_GetPosition(p,a) (p)->GetPosition(a)
1159 #define IDirectSound3DBuffer_GetVelocity(p,a) (p)->GetVelocity(a)
1160 #define IDirectSound3DBuffer_SetAllParameters(p,a,b) (p)->SetAllParameters(a,b)
1161 #define IDirectSound3DBuffer_SetConeAngles(p,a,b,c) (p)->SetConeAngles(a,b,c)
1162 #define IDirectSound3DBuffer_SetConeOrientation(p,a,b,c,d) (p)->SetConeOrientation(a,b,c,d)
1163 #define IDirectSound3DBuffer_SetConeOutsideVolume(p,a,b) (p)->SetConeOutsideVolume(a,b)
1164 #define IDirectSound3DBuffer_SetMaxDistance(p,a,b) (p)->SetMaxDistance(a,b)
1165 #define IDirectSound3DBuffer_SetMinDistance(p,a,b) (p)->SetMinDistance(a,b)
1166 #define IDirectSound3DBuffer_SetMode(p,a,b) (p)->SetMode(a,b)
1167 #define IDirectSound3DBuffer_SetPosition(p,a,b,c,d) (p)->SetPosition(a,b,c,d)
1168 #define IDirectSound3DBuffer_SetVelocity(p,a,b,c,d) (p)->SetVelocity(a,b,c,d)
1169 #endif
1170 #define IDirectSound3DBuffer8 IDirectSound3DBuffer
1171
1172 /*****************************************************************************
1173 * IKsPropertySet interface
1174 */
1175 #ifndef _IKsPropertySet_
1176 #define _IKsPropertySet_
1177
1178 typedef struct IKsPropertySet *LPKSPROPERTYSET;
1179
1180 DEFINE_GUID(IID_IKsPropertySet,0x31EFAC30,0x515C,0x11D0,0xA9,0xAA,0x00,0xAA,0x00,0x61,0xBE,0x93);
1181
1182 #define KSPROPERTY_SUPPORT_GET 1
1183 #define KSPROPERTY_SUPPORT_SET 2
1184
1185 #define INTERFACE IKsPropertySet
DECLARE_INTERFACE_(IKsPropertySet,IUnknown)1186 DECLARE_INTERFACE_(IKsPropertySet,IUnknown)
1187 {
1188 /*** IUnknown methods ***/
1189 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1190 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1191 STDMETHOD_(ULONG,Release)(THIS) PURE;
1192 /*** IKsPropertySet methods ***/
1193 STDMETHOD(Get)(THIS_ REFGUID rgid,ULONG x1,LPVOID p1,ULONG x2,LPVOID p2,ULONG x3,ULONG *px4) PURE;
1194 STDMETHOD(Set)(THIS_ REFGUID rgid,ULONG x1,LPVOID p1,ULONG x2,LPVOID p2,ULONG x3) PURE;
1195 STDMETHOD(QuerySupport)(THIS_ REFGUID rgid,ULONG x1,ULONG *px2) PURE;
1196 };
1197 #undef INTERFACE
1198
1199 #if !defined(__cplusplus) || defined(CINTERFACE)
1200 /*** IUnknown methods ***/
1201 #define IKsPropertySet_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1202 #define IKsPropertySet_AddRef(p) (p)->lpVtbl->AddRef(p)
1203 #define IKsPropertySet_Release(p) (p)->lpVtbl->Release(p)
1204 /*** IKsPropertySet methods ***/
1205 #define IKsPropertySet_Get(p,a,b,c,d,e,f,g) (p)->lpVtbl->Get(p,a,b,c,d,e,f,g)
1206 #define IKsPropertySet_Set(p,a,b,c,d,e,f) (p)->lpVtbl->Set(p,a,b,c,d,e,f)
1207 #define IKsPropertySet_QuerySupport(p,a,b,c) (p)->lpVtbl->QuerySupport(p,a,b,c)
1208 #else
1209 /*** IUnknown methods ***/
1210 #define IKsPropertySet_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1211 #define IKsPropertySet_AddRef(p) (p)->AddRef()
1212 #define IKsPropertySet_Release(p) (p)->Release()
1213 /*** IKsPropertySet methods ***/
1214 #define IKsPropertySet_Get(p,a,b,c,d,e,f,g) (p)->Get(a,b,c,d,e,f,g)
1215 #define IKsPropertySet_Set(p,a,b,c,d,e,f) (p)->Set(a,b,c,d,e,f)
1216 #define IKsPropertySet_QuerySupport(p,a,b,c) (p)->QuerySupport(a,b,c)
1217 #endif
1218
1219 #endif /* _IKsPropertySet_ */
1220
1221 /*****************************************************************************
1222 * IDirectSoundFullDuplex interface
1223 */
1224 #define INTERFACE IDirectSoundFullDuplex
DECLARE_INTERFACE_(IDirectSoundFullDuplex,IUnknown)1225 DECLARE_INTERFACE_(IDirectSoundFullDuplex,IUnknown)
1226 {
1227 /*** IUnknown methods ***/
1228 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1229 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1230 STDMETHOD_(ULONG,Release)(THIS) PURE;
1231 /*** IDirectSoundFullDuplex methods ***/
1232 STDMETHOD(Initialize)(THIS_ LPCGUID pCaptureGuid,LPCGUID pRendererGuid,LPCDSCBUFFERDESC lpDscBufferDesc,LPCDSBUFFERDESC lpDsBufferDesc,HWND hWnd,DWORD dwLevel,LPLPDIRECTSOUNDCAPTUREBUFFER8 lplpDirectSoundCaptureBuffer8,LPLPDIRECTSOUNDBUFFER8 lplpDirectSoundBuffer8) PURE;
1233 };
1234 #undef INTERFACE
1235
1236 #if !defined(__cplusplus) || defined(CINTERFACE)
1237 /*** IUnknown methods ***/
1238 #define IDirectSoundFullDuplex_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1239 #define IDirectSoundFullDuplex_AddRef(p) (p)->lpVtbl->AddRef(p)
1240 #define IDirectSoundFullDuplex_Release(p) (p)->lpVtbl->Release(p)
1241 /*** IDirectSoundFullDuplex methods ***/
1242 #define IDirectSoundFullDuplex_Initialize(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->Initialize(p,a,b,c,d,e,f,g,h)
1243 #else
1244 /*** IUnknown methods ***/
1245 #define IDirectSoundFullDuplex_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1246 #define IDirectSoundFullDuplex_AddRef(p) (p)->AddRef()
1247 #define IDirectSoundFullDuplex_Release(p) (p)->Release()
1248 /*** IDirectSoundFullDuplex methods ***/
1249 #define IDirectSoundFullDuplex_Initialize(p,a,b,c,d,e,f,g,h) (p)->Initialize(a,b,c,d,e,f,g,h)
1250 #endif
1251
1252
1253 /*****************************************************************************
1254 * IDirectSoundFXI3DL2Reverb interface
1255 */
1256 #define INTERFACE IDirectSoundFXI3DL2Reverb
DECLARE_INTERFACE_(IDirectSoundFXI3DL2Reverb,IUnknown)1257 DECLARE_INTERFACE_(IDirectSoundFXI3DL2Reverb,IUnknown)
1258 {
1259 /*** IUnknown methods ***/
1260 STDMETHOD(QueryInterface)(THIS_ REFIID, void**) PURE;
1261 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1262 STDMETHOD_(ULONG,Release)(THIS) PURE;
1263
1264 /*** IDirectSoundFXI3DL2Reverb methods ***/
1265 STDMETHOD(SetAllParameters)(THIS_ LPCDSFXI3DL2Reverb reverb) PURE;
1266 STDMETHOD(GetAllParameters)(THIS_ LPDSFXI3DL2Reverb reverb) PURE;
1267 STDMETHOD(SetPreset)(THIS_ DWORD preset) PURE;
1268 STDMETHOD(GetPreset)(THIS_ DWORD *preset) PURE;
1269 STDMETHOD(SetQuality)(THIS_ LONG quality) PURE;
1270 STDMETHOD(GetQuality)(THIS_ LONG *quality) PURE;
1271 };
1272 #undef INTERFACE
1273
1274 #if !defined(__cplusplus) || defined(CINTERFACE)
1275 #define IDirectSoundFXI3DL2Reverb_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1276 #define IDirectSoundFXI3DL2Reverb_AddRef(p) (p)->lpVtbl->AddRef(p)
1277 #define IDirectSoundFXI3DL2Reverb_Release(p) (p)->lpVtbl->Release(p)
1278 #define IDirectSoundFXI3DL2Reverb_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a)
1279 #define IDirectSoundFXI3DL2Reverb_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a)
1280 #define IDirectSoundFXI3DL2Reverb_SetPreset(p,a) (p)->lpVtbl->SetPreset(p,a)
1281 #define IDirectSoundFXI3DL2Reverb_GetPreset(p,a) (p)->lpVtbl->GetPreset(p,a)
1282 #else
1283 #define IDirectSoundFXI3DL2Reverb_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1284 #define IDirectSoundFXI3DL2Reverb_AddRef(p) (p)->AddRef()
1285 #define IDirectSoundFXI3DL2Reverb_Release(p) (p)->Release()
1286 #define IDirectSoundFXI3DL2Reverb_SetAllParameters(p,a) (p)->SetAllParameters(a)
1287 #define IDirectSoundFXI3DL2Reverb_GetAllParameters(p,a) (p)->GetAllParameters(a)
1288 #define IDirectSoundFXI3DL2Reverb_SetPreset(p,a) (p)->SetPreset(a)
1289 #define IDirectSoundFXI3DL2Reverb_GetPreset(p,a) (p)->GetPreset(a)
1290 #endif
1291
1292 #ifdef __cplusplus
1293 } /* extern "C" */
1294 #endif /* defined(__cplusplus) */
1295
1296 #endif /* __DSOUND_INCLUDED__ */
1297