comparison fuhtark_test/include/winapi/dsound.h @ 1500:91c8c3b7cbf0

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