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