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