/* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 8.01.0628 */ /* @@MIDL_FILE_HEADING( ) */ /* verify that the version is high enough to compile this file*/ #ifndef __REQUIRED_RPCNDR_H_VERSION__ #define __REQUIRED_RPCNDR_H_VERSION__ 501 #endif /* verify that the version is high enough to compile this file*/ #ifndef __REQUIRED_RPCSAL_H_VERSION__ #define __REQUIRED_RPCSAL_H_VERSION__ 100 #endif #include "rpc.h" #include "rpcndr.h" #ifndef __RPCNDR_H_VERSION__ #error this stub requires an updated version of #endif /* __RPCNDR_H_VERSION__ */ #ifndef COM_NO_WINDOWS_H #include "windows.h" #include "ole2.h" #endif /*COM_NO_WINDOWS_H*/ #ifndef __audiomediatype_h__ #define __audiomediatype_h__ #if defined(_MSC_VER) && (_MSC_VER >= 1020) #pragma once #endif #ifndef DECLSPEC_XFGVIRT #if defined(_CONTROL_FLOW_GUARD_XFG) #define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) #else #define DECLSPEC_XFGVIRT(base, func) #endif #endif /* Forward Declarations */ #ifndef __IAudioMediaType_FWD_DEFINED__ #define __IAudioMediaType_FWD_DEFINED__ typedef interface IAudioMediaType IAudioMediaType; #endif /* __IAudioMediaType_FWD_DEFINED__ */ /* header files for imported files */ #include "oaidl.h" #include "ocidl.h" #include "mmreg.h" #ifdef __cplusplus extern "C"{ #endif /* interface __MIDL_itf_audiomediatype_0000_0000 */ /* [local] */ #include #pragma region Desktop Family #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) #if !defined( _UNCOMPRESSEDAUDIOFORMAT_ ) #define _UNCOMPRESSEDAUDIOFORMAT_ typedef struct _UNCOMPRESSEDAUDIOFORMAT { GUID guidFormatType; DWORD dwSamplesPerFrame; DWORD dwBytesPerSampleContainer; DWORD dwValidBitsPerSample; FLOAT fFramesPerSecond; DWORD dwChannelMask; } UNCOMPRESSEDAUDIOFORMAT; #endif extern RPC_IF_HANDLE __MIDL_itf_audiomediatype_0000_0000_v0_0_c_ifspec; extern RPC_IF_HANDLE __MIDL_itf_audiomediatype_0000_0000_v0_0_s_ifspec; #ifndef __IAudioMediaType_INTERFACE_DEFINED__ #define __IAudioMediaType_INTERFACE_DEFINED__ /* interface IAudioMediaType */ /* [local][uuid][object] */ EXTERN_C const IID IID_IAudioMediaType; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("4E997F73-B71F-4798-873B-ED7DFCF15B4D") IAudioMediaType : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE IsCompressedFormat( /* [annotation][out] */ _Out_ BOOL *pfCompressed) = 0; virtual HRESULT STDMETHODCALLTYPE IsEqual( /* [annotation][in] */ _In_ IAudioMediaType *pIAudioType, /* [annotation][out] */ _Out_ DWORD *pdwFlags) = 0; virtual const WAVEFORMATEX *STDMETHODCALLTYPE GetAudioFormat( void) = 0; virtual HRESULT STDMETHODCALLTYPE GetUncompressedAudioFormat( /* [annotation][out] */ _Out_ UNCOMPRESSEDAUDIOFORMAT *pUncompressedAudioFormat) = 0; }; #else /* C style interface */ typedef struct IAudioMediaTypeVtbl { BEGIN_INTERFACE DECLSPEC_XFGVIRT(IUnknown, QueryInterface) HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IAudioMediaType * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); DECLSPEC_XFGVIRT(IUnknown, AddRef) ULONG ( STDMETHODCALLTYPE *AddRef )( IAudioMediaType * This); DECLSPEC_XFGVIRT(IUnknown, Release) ULONG ( STDMETHODCALLTYPE *Release )( IAudioMediaType * This); DECLSPEC_XFGVIRT(IAudioMediaType, IsCompressedFormat) HRESULT ( STDMETHODCALLTYPE *IsCompressedFormat )( IAudioMediaType * This, /* [annotation][out] */ _Out_ BOOL *pfCompressed); DECLSPEC_XFGVIRT(IAudioMediaType, IsEqual) HRESULT ( STDMETHODCALLTYPE *IsEqual )( IAudioMediaType * This, /* [annotation][in] */ _In_ IAudioMediaType *pIAudioType, /* [annotation][out] */ _Out_ DWORD *pdwFlags); DECLSPEC_XFGVIRT(IAudioMediaType, GetAudioFormat) const WAVEFORMATEX *( STDMETHODCALLTYPE *GetAudioFormat )( IAudioMediaType * This); DECLSPEC_XFGVIRT(IAudioMediaType, GetUncompressedAudioFormat) HRESULT ( STDMETHODCALLTYPE *GetUncompressedAudioFormat )( IAudioMediaType * This, /* [annotation][out] */ _Out_ UNCOMPRESSEDAUDIOFORMAT *pUncompressedAudioFormat); END_INTERFACE } IAudioMediaTypeVtbl; interface IAudioMediaType { CONST_VTBL struct IAudioMediaTypeVtbl *lpVtbl; }; #ifdef COBJMACROS #define IAudioMediaType_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IAudioMediaType_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IAudioMediaType_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IAudioMediaType_IsCompressedFormat(This,pfCompressed) \ ( (This)->lpVtbl -> IsCompressedFormat(This,pfCompressed) ) #define IAudioMediaType_IsEqual(This,pIAudioType,pdwFlags) \ ( (This)->lpVtbl -> IsEqual(This,pIAudioType,pdwFlags) ) #define IAudioMediaType_GetAudioFormat(This) \ ( (This)->lpVtbl -> GetAudioFormat(This) ) #define IAudioMediaType_GetUncompressedAudioFormat(This,pUncompressedAudioFormat) \ ( (This)->lpVtbl -> GetUncompressedAudioFormat(This,pUncompressedAudioFormat) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IAudioMediaType_INTERFACE_DEFINED__ */ /* interface __MIDL_itf_audiomediatype_0000_0001 */ /* [local] */ // // CreateAudioMediaType // STDAPI CreateAudioMediaType( const WAVEFORMATEX* pAudioFormat, UINT32 cbAudioFormatSize, IAudioMediaType** ppIAudioMediaType ); // // CreateAudioMediaTypeFromUncompressedAudioFormat // STDAPI CreateAudioMediaTypeFromUncompressedAudioFormat( const UNCOMPRESSEDAUDIOFORMAT* pUncompressedAudioFormat, IAudioMediaType** ppIAudioMediaType ); #define AUDIOMEDIATYPE_EQUAL_FORMAT_TYPES 0x00000002 #define AUDIOMEDIATYPE_EQUAL_FORMAT_DATA 0x00000004 #define AUDIOMEDIATYPE_EQUAL_FORMAT_USER_DATA 0x00000008 #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ #pragma endregion extern RPC_IF_HANDLE __MIDL_itf_audiomediatype_0000_0001_v0_0_c_ifspec; extern RPC_IF_HANDLE __MIDL_itf_audiomediatype_0000_0001_v0_0_s_ifspec; /* Additional Prototypes for ALL interfaces */ /* end of Additional Prototypes */ #ifdef __cplusplus } #endif #endif