1 | /*
|
---|
2 | * DirectSound driver
|
---|
3 | * (DirectX 5 version)
|
---|
4 | *
|
---|
5 | * Copyright (C) 2000 Ove Kaaven
|
---|
6 | *
|
---|
7 | * This library is free software; you can redistribute it and/or
|
---|
8 | * modify it under the terms of the GNU Lesser General Public
|
---|
9 | * License as published by the Free Software Foundation; either
|
---|
10 | * version 2.1 of the License, or (at your option) any later version.
|
---|
11 | *
|
---|
12 | * This library is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
15 | * Lesser General Public License for more details.
|
---|
16 | *
|
---|
17 | * You should have received a copy of the GNU Lesser General Public
|
---|
18 | * License along with this library; if not, write to the Free Software
|
---|
19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
20 | */
|
---|
21 |
|
---|
22 | /*
|
---|
23 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
24 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
25 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
26 | * a choice of LGPL license versions is made available with the language indicating
|
---|
27 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
28 | * of the LGPL is applied is otherwise unspecified.
|
---|
29 | */
|
---|
30 |
|
---|
31 | #ifndef __WINE_DSDRIVER_H
|
---|
32 | #define __WINE_DSDRIVER_H
|
---|
33 |
|
---|
34 | #ifdef __cplusplus
|
---|
35 | extern "C" {
|
---|
36 | #endif
|
---|
37 |
|
---|
38 | /*****************************************************************************
|
---|
39 | * Predeclare the interfaces
|
---|
40 | */
|
---|
41 | DEFINE_GUID(IID_IDsDriver, 0x8C4233C0l, 0xB4CC, 0x11CE, 0x92, 0x94, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00);
|
---|
42 | typedef struct IDsDriver *PIDSDRIVER;
|
---|
43 |
|
---|
44 | DEFINE_GUID(IID_IDsDriverBuffer, 0x8C4233C1l, 0xB4CC, 0x11CE, 0x92, 0x94, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00);
|
---|
45 | typedef struct IDsDriverBuffer *PIDSDRIVERBUFFER;
|
---|
46 |
|
---|
47 | DEFINE_GUID(IID_IDsDriverPropertySet, 0x0F6F2E8E0, 0xD842, 0x11D0, 0x8F, 0x75, 0x00, 0xC0, 0x4F, 0xC2, 0x8A, 0xCA);
|
---|
48 | typedef struct IDsDriverPropertySet *PIDSDRIVERPROPERTYSET;
|
---|
49 |
|
---|
50 | DEFINE_GUID(IID_IDsDriverNotify, 0x00363EF44, 0x3B57, 0x11D3, 0xAC, 0x79, 0x00, 0x10, 0x5A, 0x01, 0x7f, 0xe1);
|
---|
51 | typedef struct IDsDriverNotify *PIDSDRIVERNOTIFY;
|
---|
52 |
|
---|
53 | DEFINE_GUID(IID_IDsCaptureDriver, 0x03DD10C47, 0x74FB, 0x11D3, 0x90, 0x49, 0xCB, 0xB4, 0xB3, 0x2E, 0xAA, 0x08);
|
---|
54 | typedef struct IDsCaptureDriver *PIDSCDRIVER;
|
---|
55 |
|
---|
56 | DEFINE_GUID(IID_IDsCaptureDriverBuffer, 0x03DD10C48, 0x74FB, 0x11D3, 0x90, 0x49, 0xCB, 0xB4, 0xB3, 0x2E, 0xAA, 0x08);
|
---|
57 | typedef struct IDsCaptureDriverBuffer *PIDSCDRIVERBUFFER;
|
---|
58 |
|
---|
59 | #define DSDDESC_DOMMSYSTEMOPEN 0x00000001
|
---|
60 | #define DSDDESC_DOMMSYSTEMSETFORMAT 0x00000002
|
---|
61 | #define DSDDESC_USESYSTEMMEMORY 0x00000004
|
---|
62 | #define DSDDESC_DONTNEEDPRIMARYLOCK 0x00000008
|
---|
63 | #define DSDDESC_DONTNEEDSECONDARYLOCK 0x00000010
|
---|
64 | #define DSDDESC_DONTNEEDWRITELEAD 0x00000020
|
---|
65 |
|
---|
66 | #define DSDHEAP_NOHEAP 0
|
---|
67 | #define DSDHEAP_CREATEHEAP 1
|
---|
68 | #define DSDHEAP_USEDIRECTDRAWHEAP 2
|
---|
69 | #define DSDHEAP_PRIVATEHEAP 3
|
---|
70 |
|
---|
71 | typedef struct _DSDRIVERDESC
|
---|
72 | {
|
---|
73 | DWORD dwFlags;
|
---|
74 | CHAR szDesc[256];
|
---|
75 | CHAR szDrvname[256];
|
---|
76 | DWORD dnDevNode;
|
---|
77 | WORD wVxdId;
|
---|
78 | WORD wReserved;
|
---|
79 | ULONG ulDeviceNum;
|
---|
80 | DWORD dwHeapType;
|
---|
81 | LPVOID pvDirectDrawHeap;
|
---|
82 | DWORD dwMemStartAddress;
|
---|
83 | DWORD dwMemEndAddress;
|
---|
84 | DWORD dwMemAllocExtra;
|
---|
85 | LPVOID pvReserved1;
|
---|
86 | LPVOID pvReserved2;
|
---|
87 | } DSDRIVERDESC,*PDSDRIVERDESC;
|
---|
88 |
|
---|
89 | typedef struct _DSDRIVERCAPS
|
---|
90 | {
|
---|
91 | DWORD dwFlags;
|
---|
92 | DWORD dwMinSecondarySampleRate;
|
---|
93 | DWORD dwMaxSecondarySampleRate;
|
---|
94 | DWORD dwPrimaryBuffers;
|
---|
95 | DWORD dwMaxHwMixingAllBuffers;
|
---|
96 | DWORD dwMaxHwMixingStaticBuffers;
|
---|
97 | DWORD dwMaxHwMixingStreamingBuffers;
|
---|
98 | DWORD dwFreeHwMixingAllBuffers;
|
---|
99 | DWORD dwFreeHwMixingStaticBuffers;
|
---|
100 | DWORD dwFreeHwMixingStreamingBuffers;
|
---|
101 | DWORD dwMaxHw3DAllBuffers;
|
---|
102 | DWORD dwMaxHw3DStaticBuffers;
|
---|
103 | DWORD dwMaxHw3DStreamingBuffers;
|
---|
104 | DWORD dwFreeHw3DAllBuffers;
|
---|
105 | DWORD dwFreeHw3DStaticBuffers;
|
---|
106 | DWORD dwFreeHw3DStreamingBuffers;
|
---|
107 | DWORD dwTotalHwMemBytes;
|
---|
108 | DWORD dwFreeHwMemBytes;
|
---|
109 | DWORD dwMaxContigFreeHwMemBytes;
|
---|
110 | } DSDRIVERCAPS,*PDSDRIVERCAPS;
|
---|
111 |
|
---|
112 | typedef struct _DSVOLUMEPAN
|
---|
113 | {
|
---|
114 | DWORD dwTotalLeftAmpFactor;
|
---|
115 | DWORD dwTotalRightAmpFactor;
|
---|
116 | LONG lVolume;
|
---|
117 | DWORD dwVolAmpFactor;
|
---|
118 | LONG lPan;
|
---|
119 | DWORD dwPanLeftAmpFactor;
|
---|
120 | DWORD dwPanRightAmpFactor;
|
---|
121 | } DSVOLUMEPAN,*PDSVOLUMEPAN;
|
---|
122 |
|
---|
123 | typedef union _DSPROPERTY
|
---|
124 | {
|
---|
125 | struct {
|
---|
126 | GUID Set;
|
---|
127 | ULONG Id;
|
---|
128 | ULONG Flags;
|
---|
129 | ULONG InstanceId;
|
---|
130 | } DUMMYSTRUCTNAME;
|
---|
131 | ULONGLONG Alignment;
|
---|
132 | } DSPROPERTY,*PDSPROPERTY;
|
---|
133 |
|
---|
134 | typedef struct _DSCDRIVERCAPS
|
---|
135 | {
|
---|
136 | DWORD dwSize;
|
---|
137 | DWORD dwFlags;
|
---|
138 | DWORD dwFormats;
|
---|
139 | DWORD dwChannels;
|
---|
140 | } DSCDRIVERCAPS,*PDSCDRIVERCAPS;
|
---|
141 |
|
---|
142 | /*****************************************************************************
|
---|
143 | * IDsDriver interface
|
---|
144 | */
|
---|
145 | #define INTERFACE IDsDriver
|
---|
146 | DECLARE_INTERFACE_(IDsDriver,IUnknown)
|
---|
147 | {
|
---|
148 | /*** IUnknown methods ***/
|
---|
149 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
150 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
151 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
152 | /*** IDsDriver methods ***/
|
---|
153 | STDMETHOD(GetDriverDesc)(THIS_ PDSDRIVERDESC pDsDriverDesc) PURE;
|
---|
154 | STDMETHOD(Open)(THIS) PURE;
|
---|
155 | STDMETHOD(Close)(THIS) PURE;
|
---|
156 | STDMETHOD(GetCaps)(THIS_ PDSDRIVERCAPS pDsDrvCaps) PURE;
|
---|
157 | STDMETHOD(CreateSoundBuffer)(THIS_ LPWAVEFORMATEX pwfx,DWORD dwFlags,DWORD dwCardAddress,LPDWORD pdwcbBufferSize,LPBYTE *ppbBuffer,LPVOID *ppvObj) PURE;
|
---|
158 | STDMETHOD(DuplicateSoundBuffer)(THIS_ PIDSDRIVERBUFFER pIDsDriverBuffer,LPVOID *ppvObj) PURE;
|
---|
159 | };
|
---|
160 | #undef INTERFACE
|
---|
161 |
|
---|
162 | #if !defined (__cplusplus) || defined(CINTERFACE)
|
---|
163 | /*** IUnknown methods ***/
|
---|
164 | #define IDsDriver_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
165 | #define IDsDriver_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
166 | #define IDsDriver_Release(p) (p)->lpVtbl->Release(p)
|
---|
167 | /*** IDsDriver methods ***/
|
---|
168 | #define IDsDriver_GetDriverDesc(p,a) (p)->lpVtbl->GetDriverDesc(p,a)
|
---|
169 | #define IDsDriver_Open(p) (p)->lpVtbl->Open(p)
|
---|
170 | #define IDsDriver_Close(p) (p)->lpVtbl->Close(p)
|
---|
171 | #define IDsDriver_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
|
---|
172 | #define IDsDriver_CreateSoundBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateSoundBuffer(p,a,b,c,d,e,f)
|
---|
173 | #define IDsDriver_DuplicateSoundBuffer(p,a,b) (p)->lpVtbl->DuplicateSoundBuffer(p,a,b)
|
---|
174 | #endif
|
---|
175 |
|
---|
176 | /*****************************************************************************
|
---|
177 | * IDsDriverBuffer interface
|
---|
178 | */
|
---|
179 | #define INTERFACE IDsDriverBuffer
|
---|
180 | DECLARE_INTERFACE_(IDsDriverBuffer,IUnknown)
|
---|
181 | {
|
---|
182 | /*** IUnknown methods ***/
|
---|
183 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
184 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
185 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
186 | /*** IDsDriverBuffer methods ***/
|
---|
187 | STDMETHOD(Lock)(THIS_ LPVOID *ppvAudio1,LPDWORD pdwLen1,LPVOID *pdwAudio2,LPDWORD pdwLen2,DWORD dwWritePosition,DWORD dwWriteLen,DWORD dwFlags) PURE;
|
---|
188 | STDMETHOD(Unlock)(THIS_ LPVOID pvAudio1,DWORD dwLen1,LPVOID pvAudio2,DWORD dwLen2) PURE;
|
---|
189 | STDMETHOD(SetFormat)(THIS_ LPWAVEFORMATEX pwfxToSet) PURE;
|
---|
190 | STDMETHOD(SetFrequency)(THIS_ DWORD dwFrequency) PURE;
|
---|
191 | STDMETHOD(SetVolumePan)(THIS_ PDSVOLUMEPAN pDsVolumePan) PURE;
|
---|
192 | STDMETHOD(SetPosition)(THIS_ DWORD dwNewPosition) PURE;
|
---|
193 | STDMETHOD(GetPosition)(THIS_ LPDWORD lpdwCurrentPlayCursor,LPDWORD lpdwCurrentWriteCursor) PURE;
|
---|
194 | STDMETHOD(Play)(THIS_ DWORD dwReserved1,DWORD dwReserved2,DWORD dwFlags) PURE;
|
---|
195 | STDMETHOD(Stop)(THIS) PURE;
|
---|
196 | };
|
---|
197 | #undef INTERFACE
|
---|
198 |
|
---|
199 | #if !defined (__cplusplus) || defined(CINTERFACE)
|
---|
200 | /*** IUnknown methods ***/
|
---|
201 | #define IDsDriverBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
202 | #define IDsDriverBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
203 | #define IDsDriverBuffer_Release(p) (p)->lpVtbl->Release(p)
|
---|
204 | /*** IDsDriverBuffer methods ***/
|
---|
205 | #define IDsDriverBuffer_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g)
|
---|
206 | #define IDsDriverBuffer_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d)
|
---|
207 | #define IDsDriverBuffer_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a)
|
---|
208 | #define IDsDriverBuffer_SetFrequency(p,a) (p)->lpVtbl->SetFrequency(p,a)
|
---|
209 | #define IDsDriverBuffer_SetVolumePan(p,a) (p)->lpVtbl->SetVolumePan(p,a)
|
---|
210 | #define IDsDriverBuffer_SetPosition(p,a) (p)->lpVtbl->SetPosition(p,a)
|
---|
211 | #define IDsDriverBuffer_GetPosition(p,a,b) (p)->lpVtbl->GetPosition(p,a,b)
|
---|
212 | #define IDsDriverBuffer_Play(p,a,b,c) (p)->lpVtbl->Play(p,a,b,c)
|
---|
213 | #define IDsDriverBuffer_Stop(p) (p)->lpVtbl->Stop(p)
|
---|
214 | #endif
|
---|
215 |
|
---|
216 | /*****************************************************************************
|
---|
217 | * IDsDriverPropertySet interface
|
---|
218 | */
|
---|
219 | #define INTERFACE IDsDriverPropertySet
|
---|
220 | DECLARE_INTERFACE_(IDsDriverPropertySet,IUnknown)
|
---|
221 | {
|
---|
222 | /*** IUnknown methods ***/
|
---|
223 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
224 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
225 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
226 | /*** IDsDriverPropertySet methods ***/
|
---|
227 | STDMETHOD(Get)(THIS_ PDSPROPERTY pDsProperty,LPVOID pPropertyParams,ULONG cbPropertyParams,LPVOID pPropertyData,ULONG cbPropertyData,PULONG pcbReturnedData) PURE;
|
---|
228 | STDMETHOD(Set)(THIS_ PDSPROPERTY pDsProperty,LPVOID pPropertyParams,ULONG cbPropertyParams,LPVOID pPropertyData,ULONG cbPropertyData) PURE;
|
---|
229 | STDMETHOD(QuerySupport)(THIS_ REFGUID PropertySetId,ULONG PropertyId,PULONG pSupport) PURE;
|
---|
230 | };
|
---|
231 | #undef INTERFACE
|
---|
232 |
|
---|
233 | #if !defined (__cplusplus) || defined(CINTERFACE)
|
---|
234 | /*** IUnknown methods ***/
|
---|
235 | #define IDsDriverPropertySet_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
236 | #define IDsDriverPropertySet_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
237 | #define IDsDriverPropertySet_Release(p) (p)->lpVtbl->Release(p)
|
---|
238 | /*** IDsDriverPropertySet methods ***/
|
---|
239 | #define IDsDriverPropertySet_Get(p,a,b,c,d,e,f) (p)->lpVtbl->Get(p,a,b,c,d,e,f)
|
---|
240 | #define IDsDriverPropertySet_Set(p,a,b,c,d,e) (p)->lpVtbl->Set(p,a,b,c,d,e)
|
---|
241 | #define IDsDriverPropertySet_QuerySupport(p,a,b,c) (p)->lpVtbl->QuerySupport(p,a,b,c)
|
---|
242 | #endif
|
---|
243 |
|
---|
244 | /* Defined property sets */
|
---|
245 | DEFINE_GUID(DSPROPSETID_DirectSound3DListener, 0x6D047B40, 0x7AF9, 0x11D0, 0x92, 0x94, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0);
|
---|
246 | typedef enum
|
---|
247 | {
|
---|
248 | DSPROPERTY_DIRECTSOUND3DLISTENER_ALL,
|
---|
249 | DSPROPERTY_DIRECTSOUND3DLISTENER_POSITION,
|
---|
250 | DSPROPERTY_DIRECTSOUND3DLISTENER_VELOCITY,
|
---|
251 | DSPROPERTY_DIRECTSOUND3DLISTENER_ORIENTATION,
|
---|
252 | DSPROPERTY_DIRECTSOUND3DLISTENER_DISTANCEFACTOR,
|
---|
253 | DSPROPERTY_DIRECTSOUND3DLISTENER_ROLLOFFFACTOR,
|
---|
254 | DSPROPERTY_DIRECTSOUND3DLISTENER_DOPPLERFACTOR,
|
---|
255 | DSPROPERTY_DIRECTSOUND3DLISTENER_BATCH,
|
---|
256 | DSPROPERTY_DIRECTSOUND3DLISTENER_ALLOCATION
|
---|
257 | } DSPROPERTY_DIRECTSOUND3DLISTENER;
|
---|
258 |
|
---|
259 | DEFINE_GUID(DSPROPSETID_DirectSound3DBuffer, 0x6D047B41, 0x7AF9, 0x11D0, 0x92, 0x94, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0);
|
---|
260 | typedef enum
|
---|
261 | {
|
---|
262 | DSPROPERTY_DIRECTSOUND3DBUFFER_ALL,
|
---|
263 | DSPROPERTY_DIRECTSOUND3DBUFFER_POSITION,
|
---|
264 | DSPROPERTY_DIRECTSOUND3DBUFFER_VELOCITY,
|
---|
265 | DSPROPERTY_DIRECTSOUND3DBUFFER_CONEANGLES,
|
---|
266 | DSPROPERTY_DIRECTSOUND3DBUFFER_CONEORIENTATION,
|
---|
267 | DSPROPERTY_DIRECTSOUND3DBUFFER_CONEOUTSIDEVOLUME,
|
---|
268 | DSPROPERTY_DIRECTSOUND3DBUFFER_MINDISTANCE,
|
---|
269 | DSPROPERTY_DIRECTSOUND3DBUFFER_MAXDISTANCE,
|
---|
270 | DSPROPERTY_DIRECTSOUND3DBUFFER_MODE
|
---|
271 | } DSPROPERTY_DIRECTSOUND3DBUFFER;
|
---|
272 |
|
---|
273 | DEFINE_GUID(DSPROPSETID_DirectSoundSpeakerConfig, 0x6D047B42, 0x7AF9, 0x11D0, 0x92, 0x94, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0);
|
---|
274 | typedef enum
|
---|
275 | {
|
---|
276 | DSPROPERTY_DIRECTSOUNDSPEAKERCONFIG_SPEAKERCONFIG
|
---|
277 | } DSPROPERTY_DIRECTSOUNDSPEAKERCONFIG;
|
---|
278 |
|
---|
279 | /*****************************************************************************
|
---|
280 | * IDsDriverNotify interface
|
---|
281 | */
|
---|
282 | #define INTERFACE IDsDriverNotify
|
---|
283 | DECLARE_INTERFACE_(IDsDriverNotify,IUnknown)
|
---|
284 | {
|
---|
285 | /*** IUnknown methods ***/
|
---|
286 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
287 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
288 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
289 | /*** IDsDriverNotify methods ***/
|
---|
290 | STDMETHOD(SetNotificationPositions)(THIS_ DWORD dwPositionNotifies,LPCDSBPOSITIONNOTIFY pcPositionNotifies) PURE;
|
---|
291 | };
|
---|
292 | #undef INTERFACE
|
---|
293 |
|
---|
294 | #if !defined (__cplusplus) || defined(CINTERFACE)
|
---|
295 | /*** IUnknown methods ***/
|
---|
296 | #define IDsDriverNotify_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
297 | #define IDsDriverNotify_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
298 | #define IDsDriverNotify_Release(p) (p)->lpVtbl->Release(p)
|
---|
299 | /*** IDsDriverNotify methods ***/
|
---|
300 | #define IDsDriverNotify_SetNotificationPositions(p,a,b) (p)->lpVtbl->SetNotificationPositions(p,a,b)
|
---|
301 | #endif
|
---|
302 |
|
---|
303 | /*****************************************************************************
|
---|
304 | * IDsCaptureDriver interface
|
---|
305 | */
|
---|
306 | #define INTERFACE IDsCaptureDriver
|
---|
307 | DECLARE_INTERFACE_(IDsCaptureDriver,IUnknown)
|
---|
308 | {
|
---|
309 | /*** IUnknown methods ***/
|
---|
310 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
311 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
312 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
313 | /*** IDsCaptureDriver methods ***/
|
---|
314 | STDMETHOD(GetDriverDesc)(THIS_ PDSDRIVERDESC pDsDriverDesc) PURE;
|
---|
315 | STDMETHOD(Open)(THIS) PURE;
|
---|
316 | STDMETHOD(Close)(THIS) PURE;
|
---|
317 | STDMETHOD(GetCaps)(THIS_ PDSCDRIVERCAPS pDsDrvCaps) PURE;
|
---|
318 | STDMETHOD(CreateCaptureBuffer)(THIS_ LPWAVEFORMATEX pwfx,DWORD dwFlags,DWORD dwCardAddress,LPDWORD pdwcbBufferSize,LPBYTE *ppbBuffer,LPVOID *ppvObj) PURE;
|
---|
319 | };
|
---|
320 | #undef INTERFACE
|
---|
321 |
|
---|
322 | #if !defined (__cplusplus) || defined(CINTERFACE)
|
---|
323 | /*** IUnknown methods ***/
|
---|
324 | #define IDsCaptureDriver_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
325 | #define IDsCaptureDriver_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
326 | #define IDsCaptureDriver_Release(p) (p)->lpVtbl->Release(p)
|
---|
327 | /*** IDsCaptureDriver methods ***/
|
---|
328 | #define IDsCaptureDriver_GetDriverDesc(p,a) (p)->lpVtbl->GetDriverDesc(p,a)
|
---|
329 | #define IDsCaptureDriver_Open(p) (p)->lpVtbl->Open(p)
|
---|
330 | #define IDsCaptureDriver_Close(p) (p)->lpVtbl->Close(p)
|
---|
331 | #define IDsCaptureDriver_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
|
---|
332 | #define IDsCaptureDriver_CreateCaptureBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateCaptureBuffer(p,a,b,c,d,e,f)
|
---|
333 | #endif
|
---|
334 |
|
---|
335 | /*****************************************************************************
|
---|
336 | * IDsCaptureDriverBuffer interface
|
---|
337 | */
|
---|
338 | #define INTERFACE IDsCaptureDriverBuffer
|
---|
339 | DECLARE_INTERFACE_(IDsCaptureDriverBuffer,IUnknown)
|
---|
340 | {
|
---|
341 | /*** IUnknown methods ***/
|
---|
342 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
343 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
344 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
345 | /*** IDsCaptureDriverBuffer methods ***/
|
---|
346 | STDMETHOD(Lock)(THIS_ LPVOID *ppvAudio1,LPDWORD pdwLen1,LPVOID *ppvAudio2,LPDWORD pdwLen2,DWORD dwWritePosition,DWORD dwWriteLen,DWORD dwFlags) PURE;
|
---|
347 | STDMETHOD(Unlock)(THIS_ LPVOID pvAudio1,DWORD dwLen1,LPVOID pvAudio2,DWORD dwLen2) PURE;
|
---|
348 | STDMETHOD(SetFormat)(THIS_ LPWAVEFORMATEX pwfxToSet) PURE;
|
---|
349 | STDMETHOD(GetPosition)(THIS_ LPDWORD lpdwCurrentPlayCursor,LPDWORD lpdwCurrentWriteCursor) PURE;
|
---|
350 | STDMETHOD(GetStatus)(THIS_ LPDWORD lpdwStatus) PURE;
|
---|
351 | STDMETHOD(Start)(THIS_ DWORD dwFlags) PURE;
|
---|
352 | STDMETHOD(Stop)(THIS) PURE;
|
---|
353 | };
|
---|
354 | #undef INTERFACE
|
---|
355 |
|
---|
356 | #if !defined (__cplusplus) || defined(CINTERFACE)
|
---|
357 | /*** IUnknown methods ***/
|
---|
358 | #define IDsCaptureDriverBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
359 | #define IDsCaptureDriverBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
360 | #define IDsCaptureDriverBuffer_Release(p) (p)->lpVtbl->Release(p)
|
---|
361 | /*** IDsCaptureDriverBuffer methods ***/
|
---|
362 | #define IDsCaptureDriverBuffer_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g)
|
---|
363 | #define IDsCaptureDriverBuffer_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d)
|
---|
364 | #define IDsCaptureDriverBuffer_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a)
|
---|
365 | #define IDsCaptureDriverBuffer_GetPosition(p,a,b) (p)->lpVtbl->GetPosition(p,a,b)
|
---|
366 | #define IDsCaptureDriverBuffer_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a)
|
---|
367 | #define IDsCaptureDriverBuffer_Start(p,a) (p)->lpVtbl->Start(p,a)
|
---|
368 | #define IDsCaptureDriverBuffer_Stop(p) (p)->lpVtbl->Stop(p)
|
---|
369 | #endif
|
---|
370 |
|
---|
371 | #ifdef __cplusplus
|
---|
372 | } /* extern "C" */
|
---|
373 | #endif
|
---|
374 |
|
---|
375 | #endif /* __WINE_DSDRIVER_H */
|
---|