|
|
|
1 |
|
|
2 |
|
|
3 |
|
/* this ALWAYS GENERATED file contains the definitions for the interfaces */ |
4 |
|
|
5 |
|
|
6 |
|
/* File created by MIDL compiler version 7.00.0499 */ |
7 |
|
/* Compiler settings for audiomediatype.idl: |
8 |
|
Oicf, W1, Zp8, env=Win32 (32b run) |
9 |
|
protocol : dce , ms_ext, c_ext, robust |
10 |
|
error checks: allocation ref bounds_check enum stub_data |
11 |
|
VC __declspec() decoration level: |
12 |
|
__declspec(uuid()), __declspec(selectany), __declspec(novtable) |
13 |
|
DECLSPEC_UUID(), MIDL_INTERFACE() |
14 |
|
*/ |
15 |
|
//@@MIDL_FILE_HEADING( ) |
16 |
|
|
17 |
|
#pragma warning( disable: 4049 ) /* more than 64k source lines */ |
18 |
|
|
19 |
|
|
20 |
|
/* verify that the <rpcndr.h> version is high enough to compile this file*/ |
21 |
|
#ifndef __REQUIRED_RPCNDR_H_VERSION__ |
22 |
|
#define __REQUIRED_RPCNDR_H_VERSION__ 500 |
23 |
|
#endif |
24 |
|
|
25 |
|
/* verify that the <rpcsal.h> version is high enough to compile this file*/ |
26 |
|
#ifndef __REQUIRED_RPCSAL_H_VERSION__ |
27 |
|
#define __REQUIRED_RPCSAL_H_VERSION__ 100 |
28 |
|
#endif |
29 |
|
|
30 |
|
#include "rpc.h" |
31 |
|
#include "rpcndr.h" |
32 |
|
|
33 |
|
#ifndef __RPCNDR_H_VERSION__ |
34 |
|
#error this stub requires an updated version of <rpcndr.h> |
35 |
|
#endif // __RPCNDR_H_VERSION__ |
36 |
|
|
37 |
|
#ifndef COM_NO_WINDOWS_H |
38 |
|
#include "windows.h" |
39 |
|
#include "ole2.h" |
40 |
|
#endif /*COM_NO_WINDOWS_H*/ |
41 |
|
|
42 |
|
#ifndef __audiomediatype_h__ |
43 |
|
#define __audiomediatype_h__ |
44 |
|
|
45 |
|
#if defined(_MSC_VER) && (_MSC_VER >= 1020) |
46 |
|
#pragma once |
47 |
|
#endif |
48 |
|
|
49 |
|
/* Forward Declarations */ |
50 |
|
|
51 |
|
#ifndef __IAudioMediaType_FWD_DEFINED__ |
52 |
|
#define __IAudioMediaType_FWD_DEFINED__ |
53 |
|
typedef interface IAudioMediaType IAudioMediaType; |
54 |
|
#endif /* __IAudioMediaType_FWD_DEFINED__ */ |
55 |
|
|
56 |
|
|
57 |
|
/* header files for imported files */ |
58 |
|
#include "oaidl.h" |
59 |
|
#include "ocidl.h" |
60 |
|
|
61 |
|
#ifdef __cplusplus |
62 |
|
extern "C"{ |
63 |
|
#endif |
64 |
|
|
65 |
|
|
66 |
|
/* interface __MIDL_itf_audiomediatype_0000_0000 */ |
67 |
|
/* [local] */ |
68 |
|
|
69 |
|
#include <mmreg.h> |
70 |
|
#if 0 |
71 |
|
|
72 |
|
#pragma pack(push, 1) |
73 |
|
typedef struct tWAVEFORMATEX |
74 |
|
{ |
75 |
|
WORD wFormatTag; |
76 |
|
WORD nChannels; |
77 |
|
DWORD nSamplesPerSec; |
78 |
|
DWORD nAvgBytesPerSec; |
79 |
|
WORD nBlockAlign; |
80 |
|
WORD wBitsPerSample; |
81 |
|
WORD cbSize; |
82 |
|
BYTE pExtraBytes[ 1 ]; |
83 |
|
} WAVEFORMATEX; |
84 |
|
|
85 |
|
typedef struct tWAVEFORMATEX *PWAVEFORMATEX; |
86 |
|
|
87 |
|
typedef struct tWAVEFORMATEX *NPWAVEFORMATEX; |
88 |
|
|
89 |
|
typedef struct tWAVEFORMATEX *LPWAVEFORMATEX; |
90 |
|
|
91 |
|
typedef /* [public] */ struct __MIDL___MIDL_itf_audiomediatype_0000_0000_0001 |
92 |
|
{ |
93 |
|
WORD wFormatTag; |
94 |
|
WORD nChannels; |
95 |
|
DWORD nSamplesPerSec; |
96 |
|
DWORD nAvgBytesPerSec; |
97 |
|
WORD nBlockAlign; |
98 |
|
WORD wBitsPerSample; |
99 |
|
WORD cbSize; |
100 |
|
WORD wValidBitsPerSample; |
101 |
|
DWORD dwChannelMask; |
102 |
|
GUID SubFormat; |
103 |
|
} WAVEFORMATEXTENSIBLE; |
104 |
|
|
105 |
|
typedef struct __MIDL___MIDL_itf_audiomediatype_0000_0000_0001 *PWAVEFORMATEXTENSIBLE; |
106 |
|
|
107 |
|
|
108 |
|
#pragma pack(pop) |
109 |
|
#endif /* 0 */ |
110 |
|
#if !defined( _UNCOMPRESSEDAUDIOFORMAT_ ) |
111 |
|
#define _UNCOMPRESSEDAUDIOFORMAT_ |
112 |
|
typedef struct _UNCOMPRESSEDAUDIOFORMAT |
113 |
|
{ |
114 |
|
GUID guidFormatType; |
115 |
|
DWORD dwSamplesPerFrame; |
116 |
|
DWORD dwBytesPerSampleContainer; |
117 |
|
DWORD dwValidBitsPerSample; |
118 |
|
FLOAT fFramesPerSecond; |
119 |
|
DWORD dwChannelMask; |
120 |
|
} UNCOMPRESSEDAUDIOFORMAT; |
121 |
|
|
122 |
|
#endif |
123 |
|
|
124 |
|
|
125 |
|
|
126 |
|
extern RPC_IF_HANDLE __MIDL_itf_audiomediatype_0000_0000_v0_0_c_ifspec; |
127 |
|
extern RPC_IF_HANDLE __MIDL_itf_audiomediatype_0000_0000_v0_0_s_ifspec; |
128 |
|
|
129 |
|
#ifndef __IAudioMediaType_INTERFACE_DEFINED__ |
130 |
|
#define __IAudioMediaType_INTERFACE_DEFINED__ |
131 |
|
|
132 |
|
/* interface IAudioMediaType */ |
133 |
|
/* [local][uuid][object] */ |
134 |
|
|
135 |
|
|
136 |
|
EXTERN_C const IID IID_IAudioMediaType; |
137 |
|
|
138 |
|
#if defined(__cplusplus) && !defined(CINTERFACE) |
139 |
|
|
140 |
|
MIDL_INTERFACE("4E997F73-B71F-4798-873B-ED7DFCF15B4D") |
141 |
|
IAudioMediaType : public IUnknown |
142 |
|
{ |
143 |
|
public: |
144 |
|
virtual HRESULT STDMETHODCALLTYPE IsCompressedFormat( |
155 |
|
|
156 |
|
}; |
157 |
|
|
158 |
|
#else /* C style interface */ |
159 |
|
|
160 |
|
typedef struct IAudioMediaTypeVtbl |
161 |
|
{ |
162 |
|
BEGIN_INTERFACE |
163 |
|
|
164 |
|
HRESULT ( STDMETHODCALLTYPE *QueryInterface )( |
165 |
|
IAudioMediaType * This, |
166 |
|
/* [in] */ REFIID riid, |
167 |
|
/* [iid_is][out] */ |
168 |
|
__RPC__deref_out void **ppvObject); |
169 |
|
|
170 |
|
ULONG ( STDMETHODCALLTYPE *AddRef )( |
171 |
|
IAudioMediaType * This); |
172 |
|
|
173 |
|
ULONG ( STDMETHODCALLTYPE *Release )( |
174 |
|
IAudioMediaType * This); |
175 |
|
|
176 |
|
HRESULT ( STDMETHODCALLTYPE *IsCompressedFormat )( |
177 |
|
IAudioMediaType * This, |
178 |
|
/* [out] */ BOOL *pfCompressed); |
179 |
|
|
180 |
|
HRESULT ( STDMETHODCALLTYPE *IsEqual )( |
181 |
|
IAudioMediaType * This, |
182 |
|
/* [in] */ IAudioMediaType *pIAudioType, |
183 |
|
/* [out] */ DWORD *pdwFlags); |
184 |
|
|
185 |
|
const WAVEFORMATEX *( STDMETHODCALLTYPE *GetAudioFormat )( |
186 |
|
IAudioMediaType * This); |
187 |
|
|
188 |
|
HRESULT ( STDMETHODCALLTYPE *GetUncompressedAudioFormat )( |
189 |
|
IAudioMediaType * This, |
190 |
|
/* [out] */ UNCOMPRESSEDAUDIOFORMAT *pUncompressedAudioFormat); |
191 |
|
|
192 |
|
END_INTERFACE |
193 |
|
} IAudioMediaTypeVtbl; |
194 |
|
|
195 |
|
interface IAudioMediaType |
196 |
|
{ |
197 |
|
CONST_VTBL struct IAudioMediaTypeVtbl *lpVtbl; |
198 |
|
}; |
199 |
|
|
200 |
|
|
201 |
|
|
202 |
|
#ifdef COBJMACROS |
203 |
|
|
204 |
|
|
205 |
|
#define IAudioMediaType_QueryInterface(This,riid,ppvObject) \ |
206 |
|
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) |
207 |
|
|
208 |
|
#define IAudioMediaType_AddRef(This) \ |
209 |
|
( (This)->lpVtbl -> AddRef(This) ) |
210 |
|
|
211 |
|
#define IAudioMediaType_Release(This) \ |
212 |
|
( (This)->lpVtbl -> Release(This) ) |
213 |
|
|
214 |
|
|
215 |
|
#define IAudioMediaType_IsCompressedFormat(This,pfCompressed) \ |
216 |
|
( (This)->lpVtbl -> IsCompressedFormat(This,pfCompressed) ) |
217 |
|
|
218 |
|
#define IAudioMediaType_IsEqual(This,pIAudioType,pdwFlags) \ |
219 |
|
( (This)->lpVtbl -> IsEqual(This,pIAudioType,pdwFlags) ) |
220 |
|
|
221 |
|
#define IAudioMediaType_GetAudioFormat(This) \ |
222 |
|
( (This)->lpVtbl -> GetAudioFormat(This) ) |
223 |
|
|
224 |
|
#define IAudioMediaType_GetUncompressedAudioFormat(This,pUncompressedAudioFormat) \ |
225 |
|
( (This)->lpVtbl -> GetUncompressedAudioFormat(This,pUncompressedAudioFormat) ) |
226 |
|
|
227 |
|
#endif /* COBJMACROS */ |
228 |
|
|
229 |
|
|
230 |
|
#endif /* C style interface */ |
231 |
|
|
232 |
|
|
233 |
|
|
234 |
|
|
235 |
|
#endif /* __IAudioMediaType_INTERFACE_DEFINED__ */ |
236 |
|
|
237 |
|
|
238 |
|
/* interface __MIDL_itf_audiomediatype_0000_0001 */ |
239 |
|
/* [local] */ |
240 |
|
|
241 |
|
// |
242 |
|
// CreateAudioMediaType |
243 |
|
// |
244 |
|
STDAPI CreateAudioMediaType( |
245 |
|
const WAVEFORMATEX* pAudioFormat, |
246 |
|
UINT32 cbAudioFormatSize, |
247 |
|
IAudioMediaType** ppIAudioMediaType |
248 |
|
); |
249 |
|
// |
250 |
|
// CreateAudioMediaTypeFromUncompressedAudioFormat |
251 |
|
// |
252 |
|
STDAPI CreateAudioMediaTypeFromUncompressedAudioFormat( |
253 |
|
const UNCOMPRESSEDAUDIOFORMAT* pUncompressedAudioFormat, |
254 |
|
IAudioMediaType** ppIAudioMediaType |
255 |
|
); |
256 |
|
#define AUDIOMEDIATYPE_EQUAL_FORMAT_TYPES 0x00000002 |
257 |
|
#define AUDIOMEDIATYPE_EQUAL_FORMAT_DATA 0x00000004 |
258 |
|
#define AUDIOMEDIATYPE_EQUAL_FORMAT_USER_DATA 0x00000008 |
259 |
|
|
260 |
|
|
261 |
|
|
262 |
|
extern RPC_IF_HANDLE __MIDL_itf_audiomediatype_0000_0001_v0_0_c_ifspec; |
263 |
|
extern RPC_IF_HANDLE __MIDL_itf_audiomediatype_0000_0001_v0_0_s_ifspec; |
264 |
|
|
265 |
|
/* Additional Prototypes for ALL interfaces */ |
266 |
|
|
267 |
|
/* end of Additional Prototypes */ |
268 |
|
|
269 |
|
#ifdef __cplusplus |
270 |
|
} |
271 |
|
#endif |
272 |
|
|
273 |
|
#endif |
274 |
|
|
275 |
|
|
276 |
|
|
277 |
|
|
|
|
|