1 /*** Autogenerated by WIDL 0.1 from austream.idl - Do not edit ***/
5 #ifndef __WIDL_AUSTREAM_H
6 #define __WIDL_AUSTREAM_H
13 typedef struct tWAVEFORMATEX WAVEFORMATEX;
16 #ifndef __IAudioMediaStream_FWD_DEFINED__
17 #define __IAudioMediaStream_FWD_DEFINED__
18 typedef struct IAudioMediaStream IAudioMediaStream;
21 #ifndef __IAudioStreamSample_FWD_DEFINED__
22 #define __IAudioStreamSample_FWD_DEFINED__
23 typedef struct IAudioStreamSample IAudioStreamSample;
26 #ifndef __IMemoryData_FWD_DEFINED__
27 #define __IMemoryData_FWD_DEFINED__
28 typedef struct IMemoryData IMemoryData;
31 #ifndef __IAudioData_FWD_DEFINED__
32 #define __IAudioData_FWD_DEFINED__
33 typedef struct IAudioData IAudioData;
36 /*****************************************************************************
37 * IAudioMediaStream interface
39 #ifndef __IAudioMediaStream_INTERFACE_DEFINED__
40 #define __IAudioMediaStream_INTERFACE_DEFINED__
42 DEFINE_GUID(IID_IAudioMediaStream, 0xf7537560, 0xa3be, 0x11d0, 0x82,0x12, 0x00,0xc0,0x4f,0xc3,0x2c,0x45);
43 #if defined(__cplusplus) && !defined(CINTERFACE)
44 struct IAudioMediaStream : public IMediaStream
46 virtual HRESULT STDMETHODCALLTYPE GetFormat(
47 WAVEFORMATEX* pWaveFormatCurrent) = 0;
49 virtual HRESULT STDMETHODCALLTYPE SetFormat(
50 const WAVEFORMATEX* lpWaveFormat) = 0;
52 virtual HRESULT STDMETHODCALLTYPE CreateSample(
53 IAudioData* pAudioData,
55 IAudioStreamSample** ppSample) = 0;
59 typedef struct IAudioMediaStreamVtbl IAudioMediaStreamVtbl;
60 struct IAudioMediaStream {
61 const IAudioMediaStreamVtbl* lpVtbl;
63 struct IAudioMediaStreamVtbl {
64 ICOM_MSVTABLE_COMPAT_FIELDS
66 /*** IUnknown methods ***/
67 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
68 IAudioMediaStream* This,
72 ULONG (STDMETHODCALLTYPE *AddRef)(
73 IAudioMediaStream* This);
75 ULONG (STDMETHODCALLTYPE *Release)(
76 IAudioMediaStream* This);
78 /*** IMediaStream methods ***/
79 HRESULT (STDMETHODCALLTYPE *GetMultiMediaStream)(
80 IAudioMediaStream* This,
81 IMultiMediaStream** ppMultiMediaStream);
83 HRESULT (STDMETHODCALLTYPE *GetInformation)(
84 IAudioMediaStream* This,
88 HRESULT (STDMETHODCALLTYPE *SetSameFormat)(
89 IAudioMediaStream* This,
90 IMediaStream* pStreamThatHasDesiredFormat,
93 HRESULT (STDMETHODCALLTYPE *AllocateSample)(
94 IAudioMediaStream* This,
96 IStreamSample** ppSample);
98 HRESULT (STDMETHODCALLTYPE *CreateSharedSample)(
99 IAudioMediaStream* This,
100 IStreamSample* pExistingSample,
102 IStreamSample** ppNewSample);
104 HRESULT (STDMETHODCALLTYPE *SendEndOfStream)(
105 IAudioMediaStream* This,
108 /*** IAudioMediaStream methods ***/
109 HRESULT (STDMETHODCALLTYPE *GetFormat)(
110 IAudioMediaStream* This,
111 WAVEFORMATEX* pWaveFormatCurrent);
113 HRESULT (STDMETHODCALLTYPE *SetFormat)(
114 IAudioMediaStream* This,
115 const WAVEFORMATEX* lpWaveFormat);
117 HRESULT (STDMETHODCALLTYPE *CreateSample)(
118 IAudioMediaStream* This,
119 IAudioData* pAudioData,
121 IAudioStreamSample** ppSample);
126 /*** IUnknown methods ***/
127 #define IAudioMediaStream_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
128 #define IAudioMediaStream_AddRef(p) (p)->lpVtbl->AddRef(p)
129 #define IAudioMediaStream_Release(p) (p)->lpVtbl->Release(p)
130 /*** IMediaStream methods ***/
131 #define IAudioMediaStream_GetMultiMediaStream(p,a) (p)->lpVtbl->GetMultiMediaStream(p,a)
132 #define IAudioMediaStream_GetInformation(p,a,b) (p)->lpVtbl->GetInformation(p,a,b)
133 #define IAudioMediaStream_SetSameFormat(p,a,b) (p)->lpVtbl->SetSameFormat(p,a,b)
134 #define IAudioMediaStream_AllocateSample(p,a,b) (p)->lpVtbl->AllocateSample(p,a,b)
135 #define IAudioMediaStream_CreateSharedSample(p,a,b,c) (p)->lpVtbl->CreateSharedSample(p,a,b,c)
136 #define IAudioMediaStream_SendEndOfStream(p,a) (p)->lpVtbl->SendEndOfStream(p,a)
137 /*** IAudioMediaStream methods ***/
138 #define IAudioMediaStream_GetFormat(p,a) (p)->lpVtbl->GetFormat(p,a)
139 #define IAudioMediaStream_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a)
140 #define IAudioMediaStream_CreateSample(p,a,b,c) (p)->lpVtbl->CreateSample(p,a,b,c)
145 #define IAudioMediaStream_METHODS \
146 ICOM_MSVTABLE_COMPAT_FIELDS \
147 /*** IUnknown methods ***/ \
148 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
149 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
150 STDMETHOD_(ULONG,Release)(THIS) PURE; \
151 /*** IMediaStream methods ***/ \
152 STDMETHOD_(HRESULT,GetMultiMediaStream)(THIS_ IMultiMediaStream** ppMultiMediaStream) PURE; \
153 STDMETHOD_(HRESULT,GetInformation)(THIS_ MSPID* pPurposeId, STREAM_TYPE* pType) PURE; \
154 STDMETHOD_(HRESULT,SetSameFormat)(THIS_ IMediaStream* pStreamThatHasDesiredFormat, DWORD dwFlags) PURE; \
155 STDMETHOD_(HRESULT,AllocateSample)(THIS_ DWORD dwFlags, IStreamSample** ppSample) PURE; \
156 STDMETHOD_(HRESULT,CreateSharedSample)(THIS_ IStreamSample* pExistingSample, DWORD dwFlags, IStreamSample** ppNewSample) PURE; \
157 STDMETHOD_(HRESULT,SendEndOfStream)(THIS_ DWORD dwFlags) PURE; \
158 /*** IAudioMediaStream methods ***/ \
159 STDMETHOD_(HRESULT,GetFormat)(THIS_ WAVEFORMATEX* pWaveFormatCurrent) PURE; \
160 STDMETHOD_(HRESULT,SetFormat)(THIS_ const WAVEFORMATEX* lpWaveFormat) PURE; \
161 STDMETHOD_(HRESULT,CreateSample)(THIS_ IAudioData* pAudioData, DWORD dwFlags, IAudioStreamSample** ppSample) PURE;
163 HRESULT CALLBACK IAudioMediaStream_GetFormat_Proxy(
164 IAudioMediaStream* This,
165 WAVEFORMATEX* pWaveFormatCurrent);
166 void __RPC_STUB IAudioMediaStream_GetFormat_Stub(
167 struct IRpcStubBuffer* This,
168 struct IRpcChannelBuffer* pRpcChannelBuffer,
169 PRPC_MESSAGE pRpcMessage,
170 DWORD* pdwStubPhase);
171 HRESULT CALLBACK IAudioMediaStream_SetFormat_Proxy(
172 IAudioMediaStream* This,
173 const WAVEFORMATEX* lpWaveFormat);
174 void __RPC_STUB IAudioMediaStream_SetFormat_Stub(
175 struct IRpcStubBuffer* This,
176 struct IRpcChannelBuffer* pRpcChannelBuffer,
177 PRPC_MESSAGE pRpcMessage,
178 DWORD* pdwStubPhase);
179 HRESULT CALLBACK IAudioMediaStream_CreateSample_Proxy(
180 IAudioMediaStream* This,
181 IAudioData* pAudioData,
183 IAudioStreamSample** ppSample);
184 void __RPC_STUB IAudioMediaStream_CreateSample_Stub(
185 struct IRpcStubBuffer* This,
186 struct IRpcChannelBuffer* pRpcChannelBuffer,
187 PRPC_MESSAGE pRpcMessage,
188 DWORD* pdwStubPhase);
190 #endif /* __IAudioMediaStream_INTERFACE_DEFINED__ */
192 /*****************************************************************************
193 * IAudioStreamSample interface
195 #ifndef __IAudioStreamSample_INTERFACE_DEFINED__
196 #define __IAudioStreamSample_INTERFACE_DEFINED__
198 DEFINE_GUID(IID_IAudioStreamSample, 0x345fee00, 0xaba5, 0x11d0, 0x82,0x12, 0x00,0xc0,0x4f,0xc3,0x2c,0x45);
199 #if defined(__cplusplus) && !defined(CINTERFACE)
200 struct IAudioStreamSample : public IStreamSample
202 virtual HRESULT STDMETHODCALLTYPE GetAudioData(
203 IAudioData** ppAudio) = 0;
207 typedef struct IAudioStreamSampleVtbl IAudioStreamSampleVtbl;
208 struct IAudioStreamSample {
209 const IAudioStreamSampleVtbl* lpVtbl;
211 struct IAudioStreamSampleVtbl {
212 ICOM_MSVTABLE_COMPAT_FIELDS
214 /*** IUnknown methods ***/
215 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
216 IAudioStreamSample* This,
220 ULONG (STDMETHODCALLTYPE *AddRef)(
221 IAudioStreamSample* This);
223 ULONG (STDMETHODCALLTYPE *Release)(
224 IAudioStreamSample* This);
226 /*** IStreamSample methods ***/
227 HRESULT (STDMETHODCALLTYPE *GetMediaStream)(
228 IAudioStreamSample* This,
229 IMediaStream** ppMediaStream);
231 HRESULT (STDMETHODCALLTYPE *GetSampleTimes)(
232 IAudioStreamSample* This,
233 STREAM_TIME* pStartTime,
234 STREAM_TIME* pEndTime,
235 STREAM_TIME* pCurrentTime);
237 HRESULT (STDMETHODCALLTYPE *SetSampleTimes)(
238 IAudioStreamSample* This,
239 const STREAM_TIME* pStartTime,
240 const STREAM_TIME* pEndTime);
242 HRESULT (STDMETHODCALLTYPE *Update)(
243 IAudioStreamSample* This,
249 HRESULT (STDMETHODCALLTYPE *CompletionStatus)(
250 IAudioStreamSample* This,
252 DWORD dwMilliseconds);
254 /*** IAudioStreamSample methods ***/
255 HRESULT (STDMETHODCALLTYPE *GetAudioData)(
256 IAudioStreamSample* This,
257 IAudioData** ppAudio);
262 /*** IUnknown methods ***/
263 #define IAudioStreamSample_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
264 #define IAudioStreamSample_AddRef(p) (p)->lpVtbl->AddRef(p)
265 #define IAudioStreamSample_Release(p) (p)->lpVtbl->Release(p)
266 /*** IStreamSample methods ***/
267 #define IAudioStreamSample_GetMediaStream(p,a) (p)->lpVtbl->GetMediaStream(p,a)
268 #define IAudioStreamSample_GetSampleTimes(p,a,b,c) (p)->lpVtbl->GetSampleTimes(p,a,b,c)
269 #define IAudioStreamSample_SetSampleTimes(p,a,b) (p)->lpVtbl->SetSampleTimes(p,a,b)
270 #define IAudioStreamSample_Update(p,a,b,c,d) (p)->lpVtbl->Update(p,a,b,c,d)
271 #define IAudioStreamSample_CompletionStatus(p,a,b) (p)->lpVtbl->CompletionStatus(p,a,b)
272 /*** IAudioStreamSample methods ***/
273 #define IAudioStreamSample_GetAudioData(p,a) (p)->lpVtbl->GetAudioData(p,a)
278 #define IAudioStreamSample_METHODS \
279 ICOM_MSVTABLE_COMPAT_FIELDS \
280 /*** IUnknown methods ***/ \
281 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
282 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
283 STDMETHOD_(ULONG,Release)(THIS) PURE; \
284 /*** IStreamSample methods ***/ \
285 STDMETHOD_(HRESULT,GetMediaStream)(THIS_ IMediaStream** ppMediaStream) PURE; \
286 STDMETHOD_(HRESULT,GetSampleTimes)(THIS_ STREAM_TIME* pStartTime, STREAM_TIME* pEndTime, STREAM_TIME* pCurrentTime) PURE; \
287 STDMETHOD_(HRESULT,SetSampleTimes)(THIS_ const STREAM_TIME* pStartTime, const STREAM_TIME* pEndTime) PURE; \
288 STDMETHOD_(HRESULT,Update)(THIS_ DWORD dwFlags, HANDLE hEvent, PAPCFUNC pfnAPC, DWORD dwAPCData) PURE; \
289 STDMETHOD_(HRESULT,CompletionStatus)(THIS_ DWORD dwFlags, DWORD dwMilliseconds) PURE; \
290 /*** IAudioStreamSample methods ***/ \
291 STDMETHOD_(HRESULT,GetAudioData)(THIS_ IAudioData** ppAudio) PURE;
293 HRESULT CALLBACK IAudioStreamSample_GetAudioData_Proxy(
294 IAudioStreamSample* This,
295 IAudioData** ppAudio);
296 void __RPC_STUB IAudioStreamSample_GetAudioData_Stub(
297 struct IRpcStubBuffer* This,
298 struct IRpcChannelBuffer* pRpcChannelBuffer,
299 PRPC_MESSAGE pRpcMessage,
300 DWORD* pdwStubPhase);
302 #endif /* __IAudioStreamSample_INTERFACE_DEFINED__ */
304 /*****************************************************************************
305 * IMemoryData interface
307 #ifndef __IMemoryData_INTERFACE_DEFINED__
308 #define __IMemoryData_INTERFACE_DEFINED__
310 DEFINE_GUID(IID_IMemoryData, 0x327fc560, 0xaf60, 0x11d0, 0x82,0x12, 0x00,0xc0,0x4f,0xc3,0x2c,0x45);
311 #if defined(__cplusplus) && !defined(CINTERFACE)
312 struct IMemoryData : public IUnknown
314 virtual HRESULT STDMETHODCALLTYPE SetBuffer(
319 virtual HRESULT STDMETHODCALLTYPE GetInfo(
322 DWORD* pcbActualData) = 0;
324 virtual HRESULT STDMETHODCALLTYPE SetActual(
325 DWORD cbDataValid) = 0;
329 typedef struct IMemoryDataVtbl IMemoryDataVtbl;
331 const IMemoryDataVtbl* lpVtbl;
333 struct IMemoryDataVtbl {
334 ICOM_MSVTABLE_COMPAT_FIELDS
336 /*** IUnknown methods ***/
337 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
342 ULONG (STDMETHODCALLTYPE *AddRef)(
345 ULONG (STDMETHODCALLTYPE *Release)(
348 /*** IMemoryData methods ***/
349 HRESULT (STDMETHODCALLTYPE *SetBuffer)(
355 HRESULT (STDMETHODCALLTYPE *GetInfo)(
359 DWORD* pcbActualData);
361 HRESULT (STDMETHODCALLTYPE *SetActual)(
368 /*** IUnknown methods ***/
369 #define IMemoryData_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
370 #define IMemoryData_AddRef(p) (p)->lpVtbl->AddRef(p)
371 #define IMemoryData_Release(p) (p)->lpVtbl->Release(p)
372 /*** IMemoryData methods ***/
373 #define IMemoryData_SetBuffer(p,a,b,c) (p)->lpVtbl->SetBuffer(p,a,b,c)
374 #define IMemoryData_GetInfo(p,a,b,c) (p)->lpVtbl->GetInfo(p,a,b,c)
375 #define IMemoryData_SetActual(p,a) (p)->lpVtbl->SetActual(p,a)
380 #define IMemoryData_METHODS \
381 ICOM_MSVTABLE_COMPAT_FIELDS \
382 /*** IUnknown methods ***/ \
383 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
384 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
385 STDMETHOD_(ULONG,Release)(THIS) PURE; \
386 /*** IMemoryData methods ***/ \
387 STDMETHOD_(HRESULT,SetBuffer)(THIS_ DWORD cbSize, BYTE* pbData, DWORD dwFlags) PURE; \
388 STDMETHOD_(HRESULT,GetInfo)(THIS_ DWORD* pdwLength, BYTE** ppbData, DWORD* pcbActualData) PURE; \
389 STDMETHOD_(HRESULT,SetActual)(THIS_ DWORD cbDataValid) PURE;
391 HRESULT CALLBACK IMemoryData_SetBuffer_Proxy(
396 void __RPC_STUB IMemoryData_SetBuffer_Stub(
397 struct IRpcStubBuffer* This,
398 struct IRpcChannelBuffer* pRpcChannelBuffer,
399 PRPC_MESSAGE pRpcMessage,
400 DWORD* pdwStubPhase);
401 HRESULT CALLBACK IMemoryData_GetInfo_Proxy(
405 DWORD* pcbActualData);
406 void __RPC_STUB IMemoryData_GetInfo_Stub(
407 struct IRpcStubBuffer* This,
408 struct IRpcChannelBuffer* pRpcChannelBuffer,
409 PRPC_MESSAGE pRpcMessage,
410 DWORD* pdwStubPhase);
411 HRESULT CALLBACK IMemoryData_SetActual_Proxy(
414 void __RPC_STUB IMemoryData_SetActual_Stub(
415 struct IRpcStubBuffer* This,
416 struct IRpcChannelBuffer* pRpcChannelBuffer,
417 PRPC_MESSAGE pRpcMessage,
418 DWORD* pdwStubPhase);
420 #endif /* __IMemoryData_INTERFACE_DEFINED__ */
422 /*****************************************************************************
423 * IAudioData interface
425 #ifndef __IAudioData_INTERFACE_DEFINED__
426 #define __IAudioData_INTERFACE_DEFINED__
428 DEFINE_GUID(IID_IAudioData, 0x54c719c0, 0xaf60, 0x11d0, 0x82,0x12, 0x00,0xc0,0x4f,0xc3,0x2c,0x45);
429 #if defined(__cplusplus) && !defined(CINTERFACE)
430 struct IAudioData : public IMemoryData
432 virtual HRESULT STDMETHODCALLTYPE GetFormat(
433 WAVEFORMATEX* pWaveFormatCurrent) = 0;
435 virtual HRESULT STDMETHODCALLTYPE SetFormat(
436 const WAVEFORMATEX* lpWaveFormat) = 0;
440 typedef struct IAudioDataVtbl IAudioDataVtbl;
442 const IAudioDataVtbl* lpVtbl;
444 struct IAudioDataVtbl {
445 ICOM_MSVTABLE_COMPAT_FIELDS
447 /*** IUnknown methods ***/
448 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
453 ULONG (STDMETHODCALLTYPE *AddRef)(
456 ULONG (STDMETHODCALLTYPE *Release)(
459 /*** IMemoryData methods ***/
460 HRESULT (STDMETHODCALLTYPE *SetBuffer)(
466 HRESULT (STDMETHODCALLTYPE *GetInfo)(
470 DWORD* pcbActualData);
472 HRESULT (STDMETHODCALLTYPE *SetActual)(
476 /*** IAudioData methods ***/
477 HRESULT (STDMETHODCALLTYPE *GetFormat)(
479 WAVEFORMATEX* pWaveFormatCurrent);
481 HRESULT (STDMETHODCALLTYPE *SetFormat)(
483 const WAVEFORMATEX* lpWaveFormat);
488 /*** IUnknown methods ***/
489 #define IAudioData_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
490 #define IAudioData_AddRef(p) (p)->lpVtbl->AddRef(p)
491 #define IAudioData_Release(p) (p)->lpVtbl->Release(p)
492 /*** IMemoryData methods ***/
493 #define IAudioData_SetBuffer(p,a,b,c) (p)->lpVtbl->SetBuffer(p,a,b,c)
494 #define IAudioData_GetInfo(p,a,b,c) (p)->lpVtbl->GetInfo(p,a,b,c)
495 #define IAudioData_SetActual(p,a) (p)->lpVtbl->SetActual(p,a)
496 /*** IAudioData methods ***/
497 #define IAudioData_GetFormat(p,a) (p)->lpVtbl->GetFormat(p,a)
498 #define IAudioData_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a)
503 #define IAudioData_METHODS \
504 ICOM_MSVTABLE_COMPAT_FIELDS \
505 /*** IUnknown methods ***/ \
506 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
507 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
508 STDMETHOD_(ULONG,Release)(THIS) PURE; \
509 /*** IMemoryData methods ***/ \
510 STDMETHOD_(HRESULT,SetBuffer)(THIS_ DWORD cbSize, BYTE* pbData, DWORD dwFlags) PURE; \
511 STDMETHOD_(HRESULT,GetInfo)(THIS_ DWORD* pdwLength, BYTE** ppbData, DWORD* pcbActualData) PURE; \
512 STDMETHOD_(HRESULT,SetActual)(THIS_ DWORD cbDataValid) PURE; \
513 /*** IAudioData methods ***/ \
514 STDMETHOD_(HRESULT,GetFormat)(THIS_ WAVEFORMATEX* pWaveFormatCurrent) PURE; \
515 STDMETHOD_(HRESULT,SetFormat)(THIS_ const WAVEFORMATEX* lpWaveFormat) PURE;
517 HRESULT CALLBACK IAudioData_GetFormat_Proxy(
519 WAVEFORMATEX* pWaveFormatCurrent);
520 void __RPC_STUB IAudioData_GetFormat_Stub(
521 struct IRpcStubBuffer* This,
522 struct IRpcChannelBuffer* pRpcChannelBuffer,
523 PRPC_MESSAGE pRpcMessage,
524 DWORD* pdwStubPhase);
525 HRESULT CALLBACK IAudioData_SetFormat_Proxy(
527 const WAVEFORMATEX* lpWaveFormat);
528 void __RPC_STUB IAudioData_SetFormat_Stub(
529 struct IRpcStubBuffer* This,
530 struct IRpcChannelBuffer* pRpcChannelBuffer,
531 PRPC_MESSAGE pRpcMessage,
532 DWORD* pdwStubPhase);
534 #endif /* __IAudioData_INTERFACE_DEFINED__ */
539 #endif /* __WIDL_AUSTREAM_H */