/*** Autogenerated by WIDL 1.5.25 from include/audioclient.idl - Do not edit ***/ #ifndef __REQUIRED_RPCNDR_H_VERSION__ #define __REQUIRED_RPCNDR_H_VERSION__ 475 #endif #include <rpc.h> #include <rpcndr.h> #ifndef COM_NO_WINDOWS_H #include <windows.h> #include <ole2.h> #endif #ifndef __audioclient_h__ #define __audioclient_h__ /* Forward declarations */ #ifndef __IAudioClient_FWD_DEFINED__ #define __IAudioClient_FWD_DEFINED__ typedef interface IAudioClient IAudioClient; #endif #ifndef __IAudioRenderClient_FWD_DEFINED__ #define __IAudioRenderClient_FWD_DEFINED__ typedef interface IAudioRenderClient IAudioRenderClient; #endif #ifndef __IAudioCaptureClient_FWD_DEFINED__ #define __IAudioCaptureClient_FWD_DEFINED__ typedef interface IAudioCaptureClient IAudioCaptureClient; #endif #ifndef __IAudioClock_FWD_DEFINED__ #define __IAudioClock_FWD_DEFINED__ typedef interface IAudioClock IAudioClock; #endif #ifndef __IAudioClock2_FWD_DEFINED__ #define __IAudioClock2_FWD_DEFINED__ typedef interface IAudioClock2 IAudioClock2; #endif #ifndef __IAudioClockAdjustment_FWD_DEFINED__ #define __IAudioClockAdjustment_FWD_DEFINED__ typedef interface IAudioClockAdjustment IAudioClockAdjustment; #endif #ifndef __ISimpleAudioVolume_FWD_DEFINED__ #define __ISimpleAudioVolume_FWD_DEFINED__ typedef interface ISimpleAudioVolume ISimpleAudioVolume; #endif #ifndef __IAudioStreamVolume_FWD_DEFINED__ #define __IAudioStreamVolume_FWD_DEFINED__ typedef interface IAudioStreamVolume IAudioStreamVolume; #endif #ifndef __IChannelAudioVolume_FWD_DEFINED__ #define __IChannelAudioVolume_FWD_DEFINED__ typedef interface IChannelAudioVolume IChannelAudioVolume; #endif /* Headers for imported files */ #include <wtypes.h> #include <unknwn.h> #include <audiosessiontypes.h> #ifdef __cplusplus extern "C" { #endif #ifndef __IAudioClient_FWD_DEFINED__ #define __IAudioClient_FWD_DEFINED__ typedef interface IAudioClient IAudioClient; #endif #ifndef __IAudioRenderClient_FWD_DEFINED__ #define __IAudioRenderClient_FWD_DEFINED__ typedef interface IAudioRenderClient IAudioRenderClient; #endif #ifndef __IAudioCaptureClient_FWD_DEFINED__ #define __IAudioCaptureClient_FWD_DEFINED__ typedef interface IAudioCaptureClient IAudioCaptureClient; #endif #ifndef __IAudioClock_FWD_DEFINED__ #define __IAudioClock_FWD_DEFINED__ typedef interface IAudioClock IAudioClock; #endif #ifndef __IAudioClock2_FWD_DEFINED__ #define __IAudioClock2_FWD_DEFINED__ typedef interface IAudioClock2 IAudioClock2; #endif #ifndef __IAudioClockAdjustment_FWD_DEFINED__ #define __IAudioClockAdjustment_FWD_DEFINED__ typedef interface IAudioClockAdjustment IAudioClockAdjustment; #endif #ifndef __ISimpleAudioVolume_FWD_DEFINED__ #define __ISimpleAudioVolume_FWD_DEFINED__ typedef interface ISimpleAudioVolume ISimpleAudioVolume; #endif #ifndef __IAudioStreamVolume_FWD_DEFINED__ #define __IAudioStreamVolume_FWD_DEFINED__ typedef interface IAudioStreamVolume IAudioStreamVolume; #endif #ifndef __IChannelAudioVolume_FWD_DEFINED__ #define __IChannelAudioVolume_FWD_DEFINED__ typedef interface IChannelAudioVolume IChannelAudioVolume; #endif #if 0 typedef struct WAVEFORMATEX { WORD wFormatTag; WORD nChannels; DWORD nSamplesPerSec; DWORD nAvgBytesPerSec; WORD nBlockAlign; WORD wBitsPerSample; WORD cbSize; } WAVEFORMATEX; #else #include <mmreg.h> #endif #if 0 typedef LONGLONG REFERENCE_TIME; #else #define _IKsControl_ #include <ks.h> #include <ksmedia.h> #endif enum _AUDCLNT_BUFFERFLAGS { AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY = 0x1, AUDCLNT_BUFFERFLAGS_SILENT = 0x2, AUDCLNT_BUFFERFLAGS_TIMESTAMP_ERROR = 0x4 }; /***************************************************************************** * IAudioClient interface */ #ifndef __IAudioClient_INTERFACE_DEFINED__ #define __IAudioClient_INTERFACE_DEFINED__ DEFINE_GUID(IID_IAudioClient, 0x1cb9ad4c, 0xdbfa, 0x4c32, 0xb1,0x78, 0xc2,0xf5,0x68,0xa7,0x03,0xb2); #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("1cb9ad4c-dbfa-4c32-b178-c2f568a703b2") IAudioClient : public IUnknown { virtual HRESULT STDMETHODCALLTYPE Initialize( AUDCLNT_SHAREMODE ShareMode, DWORD StreamFlags, REFERENCE_TIME hnsBufferDuration, REFERENCE_TIME hnsPeriodicity, const WAVEFORMATEX *pFormat, LPCGUID AudioSessionGuid) = 0; virtual HRESULT STDMETHODCALLTYPE GetBufferSize( UINT32 *pNumBufferFrames) = 0; virtual HRESULT STDMETHODCALLTYPE GetStreamLatency( REFERENCE_TIME *phnsLatency) = 0; virtual HRESULT STDMETHODCALLTYPE GetCurrentPadding( UINT32 *pNumPaddingFrames) = 0; virtual HRESULT STDMETHODCALLTYPE IsFormatSupported( AUDCLNT_SHAREMODE ShareMode, const WAVEFORMATEX *pFormat, WAVEFORMATEX **ppClosestMatch) = 0; virtual HRESULT STDMETHODCALLTYPE GetMixFormat( WAVEFORMATEX **ppDeviceFormat) = 0; virtual HRESULT STDMETHODCALLTYPE GetDevicePeriod( REFERENCE_TIME *phnsDefaultDevicePeriod, REFERENCE_TIME *phnsMinimumDevicePeriod) = 0; virtual HRESULT STDMETHODCALLTYPE Start( ) = 0; virtual HRESULT STDMETHODCALLTYPE Stop( ) = 0; virtual HRESULT STDMETHODCALLTYPE Reset( ) = 0; virtual HRESULT STDMETHODCALLTYPE SetEventHandle( HANDLE eventHandle) = 0; virtual HRESULT STDMETHODCALLTYPE GetService( REFIID riid, void **ppv) = 0; }; #ifdef __CRT_UUID_DECL __CRT_UUID_DECL(IAudioClient, 0x1cb9ad4c, 0xdbfa, 0x4c32, 0xb1,0x78, 0xc2,0xf5,0x68,0xa7,0x03,0xb2) #endif #else typedef struct IAudioClientVtbl { BEGIN_INTERFACE /*** IUnknown methods ***/ HRESULT (STDMETHODCALLTYPE *QueryInterface)( IAudioClient* This, REFIID riid, void **ppvObject); ULONG (STDMETHODCALLTYPE *AddRef)( IAudioClient* This); ULONG (STDMETHODCALLTYPE *Release)( IAudioClient* This); /*** IAudioClient methods ***/ HRESULT (STDMETHODCALLTYPE *Initialize)( IAudioClient* This, AUDCLNT_SHAREMODE ShareMode, DWORD StreamFlags, REFERENCE_TIME hnsBufferDuration, REFERENCE_TIME hnsPeriodicity, const WAVEFORMATEX *pFormat, LPCGUID AudioSessionGuid); HRESULT (STDMETHODCALLTYPE *GetBufferSize)( IAudioClient* This, UINT32 *pNumBufferFrames); HRESULT (STDMETHODCALLTYPE *GetStreamLatency)( IAudioClient* This, REFERENCE_TIME *phnsLatency); HRESULT (STDMETHODCALLTYPE *GetCurrentPadding)( IAudioClient* This, UINT32 *pNumPaddingFrames); HRESULT (STDMETHODCALLTYPE *IsFormatSupported)( IAudioClient* This, AUDCLNT_SHAREMODE ShareMode, const WAVEFORMATEX *pFormat, WAVEFORMATEX **ppClosestMatch); HRESULT (STDMETHODCALLTYPE *GetMixFormat)( IAudioClient* This, WAVEFORMATEX **ppDeviceFormat); HRESULT (STDMETHODCALLTYPE *GetDevicePeriod)( IAudioClient* This, REFERENCE_TIME *phnsDefaultDevicePeriod, REFERENCE_TIME *phnsMinimumDevicePeriod); HRESULT (STDMETHODCALLTYPE *Start)( IAudioClient* This); HRESULT (STDMETHODCALLTYPE *Stop)( IAudioClient* This); HRESULT (STDMETHODCALLTYPE *Reset)( IAudioClient* This); HRESULT (STDMETHODCALLTYPE *SetEventHandle)( IAudioClient* This, HANDLE eventHandle); HRESULT (STDMETHODCALLTYPE *GetService)( IAudioClient* This, REFIID riid, void **ppv); END_INTERFACE } IAudioClientVtbl; interface IAudioClient { CONST_VTBL IAudioClientVtbl* lpVtbl; }; #ifdef COBJMACROS #ifndef WIDL_C_INLINE_WRAPPERS /*** IUnknown methods ***/ #define IAudioClient_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) #define IAudioClient_AddRef(This) (This)->lpVtbl->AddRef(This) #define IAudioClient_Release(This) (This)->lpVtbl->Release(This) /*** IAudioClient methods ***/ #define IAudioClient_Initialize(This,ShareMode,StreamFlags,hnsBufferDuration,hnsPeriodicity,pFormat,AudioSessionGuid) (This)->lpVtbl->Initialize(This,ShareMode,StreamFlags,hnsBufferDuration,hnsPeriodicity,pFormat,AudioSessionGuid) #define IAudioClient_GetBufferSize(This,pNumBufferFrames) (This)->lpVtbl->GetBufferSize(This,pNumBufferFrames) #define IAudioClient_GetStreamLatency(This,phnsLatency) (This)->lpVtbl->GetStreamLatency(This,phnsLatency) #define IAudioClient_GetCurrentPadding(This,pNumPaddingFrames) (This)->lpVtbl->GetCurrentPadding(This,pNumPaddingFrames) #define IAudioClient_IsFormatSupported(This,ShareMode,pFormat,ppClosestMatch) (This)->lpVtbl->IsFormatSupported(This,ShareMode,pFormat,ppClosestMatch) #define IAudioClient_GetMixFormat(This,ppDeviceFormat) (This)->lpVtbl->GetMixFormat(This,ppDeviceFormat) #define IAudioClient_GetDevicePeriod(This,phnsDefaultDevicePeriod,phnsMinimumDevicePeriod) (This)->lpVtbl->GetDevicePeriod(This,phnsDefaultDevicePeriod,phnsMinimumDevicePeriod) #define IAudioClient_Start(This) (This)->lpVtbl->Start(This) #define IAudioClient_Stop(This) (This)->lpVtbl->Stop(This) #define IAudioClient_Reset(This) (This)->lpVtbl->Reset(This) #define IAudioClient_SetEventHandle(This,eventHandle) (This)->lpVtbl->SetEventHandle(This,eventHandle) #define IAudioClient_GetService(This,riid,ppv) (This)->lpVtbl->GetService(This,riid,ppv) #else /*** IUnknown methods ***/ static FORCEINLINE HRESULT IAudioClient_QueryInterface(IAudioClient* This,REFIID riid,void **ppvObject) { return This->lpVtbl->QueryInterface(This,riid,ppvObject); } static FORCEINLINE ULONG IAudioClient_AddRef(IAudioClient* This) { return This->lpVtbl->AddRef(This); } static FORCEINLINE ULONG IAudioClient_Release(IAudioClient* This) { return This->lpVtbl->Release(This); } /*** IAudioClient methods ***/ static FORCEINLINE HRESULT IAudioClient_Initialize(IAudioClient* This,AUDCLNT_SHAREMODE ShareMode,DWORD StreamFlags,REFERENCE_TIME hnsBufferDuration,REFERENCE_TIME hnsPeriodicity,const WAVEFORMATEX *pFormat,LPCGUID AudioSessionGuid) { return This->lpVtbl->Initialize(This,ShareMode,StreamFlags,hnsBufferDuration,hnsPeriodicity,pFormat,AudioSessionGuid); } static FORCEINLINE HRESULT IAudioClient_GetBufferSize(IAudioClient* This,UINT32 *pNumBufferFrames) { return This->lpVtbl->GetBufferSize(This,pNumBufferFrames); } static FORCEINLINE HRESULT IAudioClient_GetStreamLatency(IAudioClient* This,REFERENCE_TIME *phnsLatency) { return This->lpVtbl->GetStreamLatency(This,phnsLatency); } static FORCEINLINE HRESULT IAudioClient_GetCurrentPadding(IAudioClient* This,UINT32 *pNumPaddingFrames) { return This->lpVtbl->GetCurrentPadding(This,pNumPaddingFrames); } static FORCEINLINE HRESULT IAudioClient_IsFormatSupported(IAudioClient* This,AUDCLNT_SHAREMODE ShareMode,const WAVEFORMATEX *pFormat,WAVEFORMATEX **ppClosestMatch) { return This->lpVtbl->IsFormatSupported(This,ShareMode,pFormat,ppClosestMatch); } static FORCEINLINE HRESULT IAudioClient_GetMixFormat(IAudioClient* This,WAVEFORMATEX **ppDeviceFormat) { return This->lpVtbl->GetMixFormat(This,ppDeviceFormat); } static FORCEINLINE HRESULT IAudioClient_GetDevicePeriod(IAudioClient* This,REFERENCE_TIME *phnsDefaultDevicePeriod,REFERENCE_TIME *phnsMinimumDevicePeriod) { return This->lpVtbl->GetDevicePeriod(This,phnsDefaultDevicePeriod,phnsMinimumDevicePeriod); } static FORCEINLINE HRESULT IAudioClient_Start(IAudioClient* This) { return This->lpVtbl->Start(This); } static FORCEINLINE HRESULT IAudioClient_Stop(IAudioClient* This) { return This->lpVtbl->Stop(This); } static FORCEINLINE HRESULT IAudioClient_Reset(IAudioClient* This) { return This->lpVtbl->Reset(This); } static FORCEINLINE HRESULT IAudioClient_SetEventHandle(IAudioClient* This,HANDLE eventHandle) { return This->lpVtbl->SetEventHandle(This,eventHandle); } static FORCEINLINE HRESULT IAudioClient_GetService(IAudioClient* This,REFIID riid,void **ppv) { return This->lpVtbl->GetService(This,riid,ppv); } #endif #endif #endif HRESULT STDMETHODCALLTYPE IAudioClient_Initialize_Proxy( IAudioClient* This, AUDCLNT_SHAREMODE ShareMode, DWORD StreamFlags, REFERENCE_TIME hnsBufferDuration, REFERENCE_TIME hnsPeriodicity, const WAVEFORMATEX *pFormat, LPCGUID AudioSessionGuid); void __RPC_STUB IAudioClient_Initialize_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioClient_GetBufferSize_Proxy( IAudioClient* This, UINT32 *pNumBufferFrames); void __RPC_STUB IAudioClient_GetBufferSize_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioClient_GetStreamLatency_Proxy( IAudioClient* This, REFERENCE_TIME *phnsLatency); void __RPC_STUB IAudioClient_GetStreamLatency_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioClient_GetCurrentPadding_Proxy( IAudioClient* This, UINT32 *pNumPaddingFrames); void __RPC_STUB IAudioClient_GetCurrentPadding_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioClient_IsFormatSupported_Proxy( IAudioClient* This, AUDCLNT_SHAREMODE ShareMode, const WAVEFORMATEX *pFormat, WAVEFORMATEX **ppClosestMatch); void __RPC_STUB IAudioClient_IsFormatSupported_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioClient_GetMixFormat_Proxy( IAudioClient* This, WAVEFORMATEX **ppDeviceFormat); void __RPC_STUB IAudioClient_GetMixFormat_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioClient_GetDevicePeriod_Proxy( IAudioClient* This, REFERENCE_TIME *phnsDefaultDevicePeriod, REFERENCE_TIME *phnsMinimumDevicePeriod); void __RPC_STUB IAudioClient_GetDevicePeriod_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioClient_Start_Proxy( IAudioClient* This); void __RPC_STUB IAudioClient_Start_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioClient_Stop_Proxy( IAudioClient* This); void __RPC_STUB IAudioClient_Stop_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioClient_Reset_Proxy( IAudioClient* This); void __RPC_STUB IAudioClient_Reset_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioClient_SetEventHandle_Proxy( IAudioClient* This, HANDLE eventHandle); void __RPC_STUB IAudioClient_SetEventHandle_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioClient_GetService_Proxy( IAudioClient* This, REFIID riid, void **ppv); void __RPC_STUB IAudioClient_GetService_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); #endif /* __IAudioClient_INTERFACE_DEFINED__ */ /***************************************************************************** * IAudioRenderClient interface */ #ifndef __IAudioRenderClient_INTERFACE_DEFINED__ #define __IAudioRenderClient_INTERFACE_DEFINED__ DEFINE_GUID(IID_IAudioRenderClient, 0xf294acfc, 0x3146, 0x4483, 0xa7,0xbf, 0xad,0xdc,0xa7,0xc2,0x60,0xe2); #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("f294acfc-3146-4483-a7bf-addca7c260e2") IAudioRenderClient : public IUnknown { virtual HRESULT STDMETHODCALLTYPE GetBuffer( UINT32 NumFramesRequested, BYTE **ppData) = 0; virtual HRESULT STDMETHODCALLTYPE ReleaseBuffer( UINT32 NumFramesWritten, DWORD dwFlags) = 0; }; #ifdef __CRT_UUID_DECL __CRT_UUID_DECL(IAudioRenderClient, 0xf294acfc, 0x3146, 0x4483, 0xa7,0xbf, 0xad,0xdc,0xa7,0xc2,0x60,0xe2) #endif #else typedef struct IAudioRenderClientVtbl { BEGIN_INTERFACE /*** IUnknown methods ***/ HRESULT (STDMETHODCALLTYPE *QueryInterface)( IAudioRenderClient* This, REFIID riid, void **ppvObject); ULONG (STDMETHODCALLTYPE *AddRef)( IAudioRenderClient* This); ULONG (STDMETHODCALLTYPE *Release)( IAudioRenderClient* This); /*** IAudioRenderClient methods ***/ HRESULT (STDMETHODCALLTYPE *GetBuffer)( IAudioRenderClient* This, UINT32 NumFramesRequested, BYTE **ppData); HRESULT (STDMETHODCALLTYPE *ReleaseBuffer)( IAudioRenderClient* This, UINT32 NumFramesWritten, DWORD dwFlags); END_INTERFACE } IAudioRenderClientVtbl; interface IAudioRenderClient { CONST_VTBL IAudioRenderClientVtbl* lpVtbl; }; #ifdef COBJMACROS #ifndef WIDL_C_INLINE_WRAPPERS /*** IUnknown methods ***/ #define IAudioRenderClient_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) #define IAudioRenderClient_AddRef(This) (This)->lpVtbl->AddRef(This) #define IAudioRenderClient_Release(This) (This)->lpVtbl->Release(This) /*** IAudioRenderClient methods ***/ #define IAudioRenderClient_GetBuffer(This,NumFramesRequested,ppData) (This)->lpVtbl->GetBuffer(This,NumFramesRequested,ppData) #define IAudioRenderClient_ReleaseBuffer(This,NumFramesWritten,dwFlags) (This)->lpVtbl->ReleaseBuffer(This,NumFramesWritten,dwFlags) #else /*** IUnknown methods ***/ static FORCEINLINE HRESULT IAudioRenderClient_QueryInterface(IAudioRenderClient* This,REFIID riid,void **ppvObject) { return This->lpVtbl->QueryInterface(This,riid,ppvObject); } static FORCEINLINE ULONG IAudioRenderClient_AddRef(IAudioRenderClient* This) { return This->lpVtbl->AddRef(This); } static FORCEINLINE ULONG IAudioRenderClient_Release(IAudioRenderClient* This) { return This->lpVtbl->Release(This); } /*** IAudioRenderClient methods ***/ static FORCEINLINE HRESULT IAudioRenderClient_GetBuffer(IAudioRenderClient* This,UINT32 NumFramesRequested,BYTE **ppData) { return This->lpVtbl->GetBuffer(This,NumFramesRequested,ppData); } static FORCEINLINE HRESULT IAudioRenderClient_ReleaseBuffer(IAudioRenderClient* This,UINT32 NumFramesWritten,DWORD dwFlags) { return This->lpVtbl->ReleaseBuffer(This,NumFramesWritten,dwFlags); } #endif #endif #endif HRESULT STDMETHODCALLTYPE IAudioRenderClient_GetBuffer_Proxy( IAudioRenderClient* This, UINT32 NumFramesRequested, BYTE **ppData); void __RPC_STUB IAudioRenderClient_GetBuffer_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioRenderClient_ReleaseBuffer_Proxy( IAudioRenderClient* This, UINT32 NumFramesWritten, DWORD dwFlags); void __RPC_STUB IAudioRenderClient_ReleaseBuffer_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); #endif /* __IAudioRenderClient_INTERFACE_DEFINED__ */ /***************************************************************************** * IAudioCaptureClient interface */ #ifndef __IAudioCaptureClient_INTERFACE_DEFINED__ #define __IAudioCaptureClient_INTERFACE_DEFINED__ DEFINE_GUID(IID_IAudioCaptureClient, 0xc8adbd64, 0xe71e, 0x48a0, 0xa4,0xde, 0x18,0x5c,0x39,0x5c,0xd3,0x17); #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("c8adbd64-e71e-48a0-a4de-185c395cd317") IAudioCaptureClient : public IUnknown { virtual HRESULT STDMETHODCALLTYPE GetBuffer( BYTE **ppData, UINT32 *pNumFramesToRead, DWORD *pdwFlags, UINT64 *pu64DevicePosition, UINT64 *pu64QPCPosition) = 0; virtual HRESULT STDMETHODCALLTYPE ReleaseBuffer( UINT32 NumFramesRead) = 0; virtual HRESULT STDMETHODCALLTYPE GetNextPacketSize( UINT32 *pNumFramesInNextPacket) = 0; }; #ifdef __CRT_UUID_DECL __CRT_UUID_DECL(IAudioCaptureClient, 0xc8adbd64, 0xe71e, 0x48a0, 0xa4,0xde, 0x18,0x5c,0x39,0x5c,0xd3,0x17) #endif #else typedef struct IAudioCaptureClientVtbl { BEGIN_INTERFACE /*** IUnknown methods ***/ HRESULT (STDMETHODCALLTYPE *QueryInterface)( IAudioCaptureClient* This, REFIID riid, void **ppvObject); ULONG (STDMETHODCALLTYPE *AddRef)( IAudioCaptureClient* This); ULONG (STDMETHODCALLTYPE *Release)( IAudioCaptureClient* This); /*** IAudioCaptureClient methods ***/ HRESULT (STDMETHODCALLTYPE *GetBuffer)( IAudioCaptureClient* This, BYTE **ppData, UINT32 *pNumFramesToRead, DWORD *pdwFlags, UINT64 *pu64DevicePosition, UINT64 *pu64QPCPosition); HRESULT (STDMETHODCALLTYPE *ReleaseBuffer)( IAudioCaptureClient* This, UINT32 NumFramesRead); HRESULT (STDMETHODCALLTYPE *GetNextPacketSize)( IAudioCaptureClient* This, UINT32 *pNumFramesInNextPacket); END_INTERFACE } IAudioCaptureClientVtbl; interface IAudioCaptureClient { CONST_VTBL IAudioCaptureClientVtbl* lpVtbl; }; #ifdef COBJMACROS #ifndef WIDL_C_INLINE_WRAPPERS /*** IUnknown methods ***/ #define IAudioCaptureClient_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) #define IAudioCaptureClient_AddRef(This) (This)->lpVtbl->AddRef(This) #define IAudioCaptureClient_Release(This) (This)->lpVtbl->Release(This) /*** IAudioCaptureClient methods ***/ #define IAudioCaptureClient_GetBuffer(This,ppData,pNumFramesToRead,pdwFlags,pu64DevicePosition,pu64QPCPosition) (This)->lpVtbl->GetBuffer(This,ppData,pNumFramesToRead,pdwFlags,pu64DevicePosition,pu64QPCPosition) #define IAudioCaptureClient_ReleaseBuffer(This,NumFramesRead) (This)->lpVtbl->ReleaseBuffer(This,NumFramesRead) #define IAudioCaptureClient_GetNextPacketSize(This,pNumFramesInNextPacket) (This)->lpVtbl->GetNextPacketSize(This,pNumFramesInNextPacket) #else /*** IUnknown methods ***/ static FORCEINLINE HRESULT IAudioCaptureClient_QueryInterface(IAudioCaptureClient* This,REFIID riid,void **ppvObject) { return This->lpVtbl->QueryInterface(This,riid,ppvObject); } static FORCEINLINE ULONG IAudioCaptureClient_AddRef(IAudioCaptureClient* This) { return This->lpVtbl->AddRef(This); } static FORCEINLINE ULONG IAudioCaptureClient_Release(IAudioCaptureClient* This) { return This->lpVtbl->Release(This); } /*** IAudioCaptureClient methods ***/ static FORCEINLINE HRESULT IAudioCaptureClient_GetBuffer(IAudioCaptureClient* This,BYTE **ppData,UINT32 *pNumFramesToRead,DWORD *pdwFlags,UINT64 *pu64DevicePosition,UINT64 *pu64QPCPosition) { return This->lpVtbl->GetBuffer(This,ppData,pNumFramesToRead,pdwFlags,pu64DevicePosition,pu64QPCPosition); } static FORCEINLINE HRESULT IAudioCaptureClient_ReleaseBuffer(IAudioCaptureClient* This,UINT32 NumFramesRead) { return This->lpVtbl->ReleaseBuffer(This,NumFramesRead); } static FORCEINLINE HRESULT IAudioCaptureClient_GetNextPacketSize(IAudioCaptureClient* This,UINT32 *pNumFramesInNextPacket) { return This->lpVtbl->GetNextPacketSize(This,pNumFramesInNextPacket); } #endif #endif #endif HRESULT STDMETHODCALLTYPE IAudioCaptureClient_GetBuffer_Proxy( IAudioCaptureClient* This, BYTE **ppData, UINT32 *pNumFramesToRead, DWORD *pdwFlags, UINT64 *pu64DevicePosition, UINT64 *pu64QPCPosition); void __RPC_STUB IAudioCaptureClient_GetBuffer_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioCaptureClient_ReleaseBuffer_Proxy( IAudioCaptureClient* This, UINT32 NumFramesRead); void __RPC_STUB IAudioCaptureClient_ReleaseBuffer_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioCaptureClient_GetNextPacketSize_Proxy( IAudioCaptureClient* This, UINT32 *pNumFramesInNextPacket); void __RPC_STUB IAudioCaptureClient_GetNextPacketSize_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); #endif /* __IAudioCaptureClient_INTERFACE_DEFINED__ */ #define AUDIOCLOCK_CHARACTERISTIC_FIXED_FREQ 0x00000001 /***************************************************************************** * IAudioClock interface */ #ifndef __IAudioClock_INTERFACE_DEFINED__ #define __IAudioClock_INTERFACE_DEFINED__ DEFINE_GUID(IID_IAudioClock, 0xcd63314f, 0x3fba, 0x4a1b, 0x81,0x2c, 0xef,0x96,0x35,0x87,0x28,0xe7); #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("cd63314f-3fba-4a1b-812c-ef96358728e7") IAudioClock : public IUnknown { virtual HRESULT STDMETHODCALLTYPE GetFrequency( UINT64 *pu64Frequency) = 0; virtual HRESULT STDMETHODCALLTYPE GetPosition( UINT64 *pu64Position, UINT64 *pu64QPCPosition) = 0; virtual HRESULT STDMETHODCALLTYPE GetCharacteristics( DWORD *pdwCharacteristics) = 0; }; #ifdef __CRT_UUID_DECL __CRT_UUID_DECL(IAudioClock, 0xcd63314f, 0x3fba, 0x4a1b, 0x81,0x2c, 0xef,0x96,0x35,0x87,0x28,0xe7) #endif #else typedef struct IAudioClockVtbl { BEGIN_INTERFACE /*** IUnknown methods ***/ HRESULT (STDMETHODCALLTYPE *QueryInterface)( IAudioClock* This, REFIID riid, void **ppvObject); ULONG (STDMETHODCALLTYPE *AddRef)( IAudioClock* This); ULONG (STDMETHODCALLTYPE *Release)( IAudioClock* This); /*** IAudioClock methods ***/ HRESULT (STDMETHODCALLTYPE *GetFrequency)( IAudioClock* This, UINT64 *pu64Frequency); HRESULT (STDMETHODCALLTYPE *GetPosition)( IAudioClock* This, UINT64 *pu64Position, UINT64 *pu64QPCPosition); HRESULT (STDMETHODCALLTYPE *GetCharacteristics)( IAudioClock* This, DWORD *pdwCharacteristics); END_INTERFACE } IAudioClockVtbl; interface IAudioClock { CONST_VTBL IAudioClockVtbl* lpVtbl; }; #ifdef COBJMACROS #ifndef WIDL_C_INLINE_WRAPPERS /*** IUnknown methods ***/ #define IAudioClock_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) #define IAudioClock_AddRef(This) (This)->lpVtbl->AddRef(This) #define IAudioClock_Release(This) (This)->lpVtbl->Release(This) /*** IAudioClock methods ***/ #define IAudioClock_GetFrequency(This,pu64Frequency) (This)->lpVtbl->GetFrequency(This,pu64Frequency) #define IAudioClock_GetPosition(This,pu64Position,pu64QPCPosition) (This)->lpVtbl->GetPosition(This,pu64Position,pu64QPCPosition) #define IAudioClock_GetCharacteristics(This,pdwCharacteristics) (This)->lpVtbl->GetCharacteristics(This,pdwCharacteristics) #else /*** IUnknown methods ***/ static FORCEINLINE HRESULT IAudioClock_QueryInterface(IAudioClock* This,REFIID riid,void **ppvObject) { return This->lpVtbl->QueryInterface(This,riid,ppvObject); } static FORCEINLINE ULONG IAudioClock_AddRef(IAudioClock* This) { return This->lpVtbl->AddRef(This); } static FORCEINLINE ULONG IAudioClock_Release(IAudioClock* This) { return This->lpVtbl->Release(This); } /*** IAudioClock methods ***/ static FORCEINLINE HRESULT IAudioClock_GetFrequency(IAudioClock* This,UINT64 *pu64Frequency) { return This->lpVtbl->GetFrequency(This,pu64Frequency); } static FORCEINLINE HRESULT IAudioClock_GetPosition(IAudioClock* This,UINT64 *pu64Position,UINT64 *pu64QPCPosition) { return This->lpVtbl->GetPosition(This,pu64Position,pu64QPCPosition); } static FORCEINLINE HRESULT IAudioClock_GetCharacteristics(IAudioClock* This,DWORD *pdwCharacteristics) { return This->lpVtbl->GetCharacteristics(This,pdwCharacteristics); } #endif #endif #endif HRESULT STDMETHODCALLTYPE IAudioClock_GetFrequency_Proxy( IAudioClock* This, UINT64 *pu64Frequency); void __RPC_STUB IAudioClock_GetFrequency_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioClock_GetPosition_Proxy( IAudioClock* This, UINT64 *pu64Position, UINT64 *pu64QPCPosition); void __RPC_STUB IAudioClock_GetPosition_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioClock_GetCharacteristics_Proxy( IAudioClock* This, DWORD *pdwCharacteristics); void __RPC_STUB IAudioClock_GetCharacteristics_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); #endif /* __IAudioClock_INTERFACE_DEFINED__ */ /***************************************************************************** * IAudioClock2 interface */ #ifndef __IAudioClock2_INTERFACE_DEFINED__ #define __IAudioClock2_INTERFACE_DEFINED__ DEFINE_GUID(IID_IAudioClock2, 0x6f49ff73, 0x6727, 0x49ac, 0xa0,0x08, 0xd9,0x8c,0xf5,0xe7,0x00,0x48); #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("6f49ff73-6727-49ac-a008-d98cf5e70048") IAudioClock2 : public IUnknown { virtual HRESULT STDMETHODCALLTYPE GetPosition( UINT64 *DevicePosition, UINT64 *QPCPosition) = 0; }; #ifdef __CRT_UUID_DECL __CRT_UUID_DECL(IAudioClock2, 0x6f49ff73, 0x6727, 0x49ac, 0xa0,0x08, 0xd9,0x8c,0xf5,0xe7,0x00,0x48) #endif #else typedef struct IAudioClock2Vtbl { BEGIN_INTERFACE /*** IUnknown methods ***/ HRESULT (STDMETHODCALLTYPE *QueryInterface)( IAudioClock2* This, REFIID riid, void **ppvObject); ULONG (STDMETHODCALLTYPE *AddRef)( IAudioClock2* This); ULONG (STDMETHODCALLTYPE *Release)( IAudioClock2* This); /*** IAudioClock2 methods ***/ HRESULT (STDMETHODCALLTYPE *GetPosition)( IAudioClock2* This, UINT64 *DevicePosition, UINT64 *QPCPosition); END_INTERFACE } IAudioClock2Vtbl; interface IAudioClock2 { CONST_VTBL IAudioClock2Vtbl* lpVtbl; }; #ifdef COBJMACROS #ifndef WIDL_C_INLINE_WRAPPERS /*** IUnknown methods ***/ #define IAudioClock2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) #define IAudioClock2_AddRef(This) (This)->lpVtbl->AddRef(This) #define IAudioClock2_Release(This) (This)->lpVtbl->Release(This) /*** IAudioClock2 methods ***/ #define IAudioClock2_GetPosition(This,DevicePosition,QPCPosition) (This)->lpVtbl->GetPosition(This,DevicePosition,QPCPosition) #else /*** IUnknown methods ***/ static FORCEINLINE HRESULT IAudioClock2_QueryInterface(IAudioClock2* This,REFIID riid,void **ppvObject) { return This->lpVtbl->QueryInterface(This,riid,ppvObject); } static FORCEINLINE ULONG IAudioClock2_AddRef(IAudioClock2* This) { return This->lpVtbl->AddRef(This); } static FORCEINLINE ULONG IAudioClock2_Release(IAudioClock2* This) { return This->lpVtbl->Release(This); } /*** IAudioClock2 methods ***/ static FORCEINLINE HRESULT IAudioClock2_GetPosition(IAudioClock2* This,UINT64 *DevicePosition,UINT64 *QPCPosition) { return This->lpVtbl->GetPosition(This,DevicePosition,QPCPosition); } #endif #endif #endif HRESULT STDMETHODCALLTYPE IAudioClock2_GetPosition_Proxy( IAudioClock2* This, UINT64 *DevicePosition, UINT64 *QPCPosition); void __RPC_STUB IAudioClock2_GetPosition_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); #endif /* __IAudioClock2_INTERFACE_DEFINED__ */ /***************************************************************************** * IAudioClockAdjustment interface */ #ifndef __IAudioClockAdjustment_INTERFACE_DEFINED__ #define __IAudioClockAdjustment_INTERFACE_DEFINED__ DEFINE_GUID(IID_IAudioClockAdjustment, 0xf6e4c0a0, 0x46d9, 0x4fb9, 0xbe,0x21, 0x57,0xa3,0xef,0x2b,0x62,0x6c); #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("f6e4c0a0-46d9-4fb9-be21-57a3ef2b626c") IAudioClockAdjustment : public IUnknown { virtual HRESULT STDMETHODCALLTYPE SetSampleRate( float flSampleRate) = 0; }; #ifdef __CRT_UUID_DECL __CRT_UUID_DECL(IAudioClockAdjustment, 0xf6e4c0a0, 0x46d9, 0x4fb9, 0xbe,0x21, 0x57,0xa3,0xef,0x2b,0x62,0x6c) #endif #else typedef struct IAudioClockAdjustmentVtbl { BEGIN_INTERFACE /*** IUnknown methods ***/ HRESULT (STDMETHODCALLTYPE *QueryInterface)( IAudioClockAdjustment* This, REFIID riid, void **ppvObject); ULONG (STDMETHODCALLTYPE *AddRef)( IAudioClockAdjustment* This); ULONG (STDMETHODCALLTYPE *Release)( IAudioClockAdjustment* This); /*** IAudioClockAdjustment methods ***/ HRESULT (STDMETHODCALLTYPE *SetSampleRate)( IAudioClockAdjustment* This, float flSampleRate); END_INTERFACE } IAudioClockAdjustmentVtbl; interface IAudioClockAdjustment { CONST_VTBL IAudioClockAdjustmentVtbl* lpVtbl; }; #ifdef COBJMACROS #ifndef WIDL_C_INLINE_WRAPPERS /*** IUnknown methods ***/ #define IAudioClockAdjustment_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) #define IAudioClockAdjustment_AddRef(This) (This)->lpVtbl->AddRef(This) #define IAudioClockAdjustment_Release(This) (This)->lpVtbl->Release(This) /*** IAudioClockAdjustment methods ***/ #define IAudioClockAdjustment_SetSampleRate(This,flSampleRate) (This)->lpVtbl->SetSampleRate(This,flSampleRate) #else /*** IUnknown methods ***/ static FORCEINLINE HRESULT IAudioClockAdjustment_QueryInterface(IAudioClockAdjustment* This,REFIID riid,void **ppvObject) { return This->lpVtbl->QueryInterface(This,riid,ppvObject); } static FORCEINLINE ULONG IAudioClockAdjustment_AddRef(IAudioClockAdjustment* This) { return This->lpVtbl->AddRef(This); } static FORCEINLINE ULONG IAudioClockAdjustment_Release(IAudioClockAdjustment* This) { return This->lpVtbl->Release(This); } /*** IAudioClockAdjustment methods ***/ static FORCEINLINE HRESULT IAudioClockAdjustment_SetSampleRate(IAudioClockAdjustment* This,float flSampleRate) { return This->lpVtbl->SetSampleRate(This,flSampleRate); } #endif #endif #endif HRESULT STDMETHODCALLTYPE IAudioClockAdjustment_SetSampleRate_Proxy( IAudioClockAdjustment* This, float flSampleRate); void __RPC_STUB IAudioClockAdjustment_SetSampleRate_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); #endif /* __IAudioClockAdjustment_INTERFACE_DEFINED__ */ /***************************************************************************** * ISimpleAudioVolume interface */ #ifndef __ISimpleAudioVolume_INTERFACE_DEFINED__ #define __ISimpleAudioVolume_INTERFACE_DEFINED__ DEFINE_GUID(IID_ISimpleAudioVolume, 0x87ce5498, 0x68d6, 0x44e5, 0x92,0x15, 0x6d,0xa4,0x7e,0xf8,0x83,0xd8); #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("87ce5498-68d6-44e5-9215-6da47ef883d8") ISimpleAudioVolume : public IUnknown { virtual HRESULT STDMETHODCALLTYPE SetMasterVolume( float fLevel, LPCGUID EventContext) = 0; virtual HRESULT STDMETHODCALLTYPE GetMasterVolume( float *pfLevel) = 0; virtual HRESULT STDMETHODCALLTYPE SetMute( const WINBOOL bMute, LPCGUID EventContext) = 0; virtual HRESULT STDMETHODCALLTYPE GetMute( WINBOOL *pbMute) = 0; }; #ifdef __CRT_UUID_DECL __CRT_UUID_DECL(ISimpleAudioVolume, 0x87ce5498, 0x68d6, 0x44e5, 0x92,0x15, 0x6d,0xa4,0x7e,0xf8,0x83,0xd8) #endif #else typedef struct ISimpleAudioVolumeVtbl { BEGIN_INTERFACE /*** IUnknown methods ***/ HRESULT (STDMETHODCALLTYPE *QueryInterface)( ISimpleAudioVolume* This, REFIID riid, void **ppvObject); ULONG (STDMETHODCALLTYPE *AddRef)( ISimpleAudioVolume* This); ULONG (STDMETHODCALLTYPE *Release)( ISimpleAudioVolume* This); /*** ISimpleAudioVolume methods ***/ HRESULT (STDMETHODCALLTYPE *SetMasterVolume)( ISimpleAudioVolume* This, float fLevel, LPCGUID EventContext); HRESULT (STDMETHODCALLTYPE *GetMasterVolume)( ISimpleAudioVolume* This, float *pfLevel); HRESULT (STDMETHODCALLTYPE *SetMute)( ISimpleAudioVolume* This, const WINBOOL bMute, LPCGUID EventContext); HRESULT (STDMETHODCALLTYPE *GetMute)( ISimpleAudioVolume* This, WINBOOL *pbMute); END_INTERFACE } ISimpleAudioVolumeVtbl; interface ISimpleAudioVolume { CONST_VTBL ISimpleAudioVolumeVtbl* lpVtbl; }; #ifdef COBJMACROS #ifndef WIDL_C_INLINE_WRAPPERS /*** IUnknown methods ***/ #define ISimpleAudioVolume_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) #define ISimpleAudioVolume_AddRef(This) (This)->lpVtbl->AddRef(This) #define ISimpleAudioVolume_Release(This) (This)->lpVtbl->Release(This) /*** ISimpleAudioVolume methods ***/ #define ISimpleAudioVolume_SetMasterVolume(This,fLevel,EventContext) (This)->lpVtbl->SetMasterVolume(This,fLevel,EventContext) #define ISimpleAudioVolume_GetMasterVolume(This,pfLevel) (This)->lpVtbl->GetMasterVolume(This,pfLevel) #define ISimpleAudioVolume_SetMute(This,bMute,EventContext) (This)->lpVtbl->SetMute(This,bMute,EventContext) #define ISimpleAudioVolume_GetMute(This,pbMute) (This)->lpVtbl->GetMute(This,pbMute) #else /*** IUnknown methods ***/ static FORCEINLINE HRESULT ISimpleAudioVolume_QueryInterface(ISimpleAudioVolume* This,REFIID riid,void **ppvObject) { return This->lpVtbl->QueryInterface(This,riid,ppvObject); } static FORCEINLINE ULONG ISimpleAudioVolume_AddRef(ISimpleAudioVolume* This) { return This->lpVtbl->AddRef(This); } static FORCEINLINE ULONG ISimpleAudioVolume_Release(ISimpleAudioVolume* This) { return This->lpVtbl->Release(This); } /*** ISimpleAudioVolume methods ***/ static FORCEINLINE HRESULT ISimpleAudioVolume_SetMasterVolume(ISimpleAudioVolume* This,float fLevel,LPCGUID EventContext) { return This->lpVtbl->SetMasterVolume(This,fLevel,EventContext); } static FORCEINLINE HRESULT ISimpleAudioVolume_GetMasterVolume(ISimpleAudioVolume* This,float *pfLevel) { return This->lpVtbl->GetMasterVolume(This,pfLevel); } static FORCEINLINE HRESULT ISimpleAudioVolume_SetMute(ISimpleAudioVolume* This,const WINBOOL bMute,LPCGUID EventContext) { return This->lpVtbl->SetMute(This,bMute,EventContext); } static FORCEINLINE HRESULT ISimpleAudioVolume_GetMute(ISimpleAudioVolume* This,WINBOOL *pbMute) { return This->lpVtbl->GetMute(This,pbMute); } #endif #endif #endif HRESULT STDMETHODCALLTYPE ISimpleAudioVolume_SetMasterVolume_Proxy( ISimpleAudioVolume* This, float fLevel, LPCGUID EventContext); void __RPC_STUB ISimpleAudioVolume_SetMasterVolume_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE ISimpleAudioVolume_GetMasterVolume_Proxy( ISimpleAudioVolume* This, float *pfLevel); void __RPC_STUB ISimpleAudioVolume_GetMasterVolume_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE ISimpleAudioVolume_SetMute_Proxy( ISimpleAudioVolume* This, const WINBOOL bMute, LPCGUID EventContext); void __RPC_STUB ISimpleAudioVolume_SetMute_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE ISimpleAudioVolume_GetMute_Proxy( ISimpleAudioVolume* This, WINBOOL *pbMute); void __RPC_STUB ISimpleAudioVolume_GetMute_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); #endif /* __ISimpleAudioVolume_INTERFACE_DEFINED__ */ /***************************************************************************** * IAudioStreamVolume interface */ #ifndef __IAudioStreamVolume_INTERFACE_DEFINED__ #define __IAudioStreamVolume_INTERFACE_DEFINED__ DEFINE_GUID(IID_IAudioStreamVolume, 0x93014887, 0x242d, 0x4068, 0x8a,0x15, 0xcf,0x5e,0x93,0xb9,0x0f,0xe3); #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("93014887-242d-4068-8a15-cf5e93b90fe3") IAudioStreamVolume : public IUnknown { virtual HRESULT STDMETHODCALLTYPE GetChannelCount( UINT32 *pdwCount) = 0; virtual HRESULT STDMETHODCALLTYPE SetChannelVolume( UINT32 dwIndex, const float fLevel) = 0; virtual HRESULT STDMETHODCALLTYPE GetChannelVolume( UINT32 dwIndex, float *pfLevel) = 0; virtual HRESULT STDMETHODCALLTYPE SetAllVolumes( UINT32 dwCount, const float *pfVolumes) = 0; virtual HRESULT STDMETHODCALLTYPE GetAllVolumes( UINT32 dwCount, float *pfVolumes) = 0; }; #ifdef __CRT_UUID_DECL __CRT_UUID_DECL(IAudioStreamVolume, 0x93014887, 0x242d, 0x4068, 0x8a,0x15, 0xcf,0x5e,0x93,0xb9,0x0f,0xe3) #endif #else typedef struct IAudioStreamVolumeVtbl { BEGIN_INTERFACE /*** IUnknown methods ***/ HRESULT (STDMETHODCALLTYPE *QueryInterface)( IAudioStreamVolume* This, REFIID riid, void **ppvObject); ULONG (STDMETHODCALLTYPE *AddRef)( IAudioStreamVolume* This); ULONG (STDMETHODCALLTYPE *Release)( IAudioStreamVolume* This); /*** IAudioStreamVolume methods ***/ HRESULT (STDMETHODCALLTYPE *GetChannelCount)( IAudioStreamVolume* This, UINT32 *pdwCount); HRESULT (STDMETHODCALLTYPE *SetChannelVolume)( IAudioStreamVolume* This, UINT32 dwIndex, const float fLevel); HRESULT (STDMETHODCALLTYPE *GetChannelVolume)( IAudioStreamVolume* This, UINT32 dwIndex, float *pfLevel); HRESULT (STDMETHODCALLTYPE *SetAllVolumes)( IAudioStreamVolume* This, UINT32 dwCount, const float *pfVolumes); HRESULT (STDMETHODCALLTYPE *GetAllVolumes)( IAudioStreamVolume* This, UINT32 dwCount, float *pfVolumes); END_INTERFACE } IAudioStreamVolumeVtbl; interface IAudioStreamVolume { CONST_VTBL IAudioStreamVolumeVtbl* lpVtbl; }; #ifdef COBJMACROS #ifndef WIDL_C_INLINE_WRAPPERS /*** IUnknown methods ***/ #define IAudioStreamVolume_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) #define IAudioStreamVolume_AddRef(This) (This)->lpVtbl->AddRef(This) #define IAudioStreamVolume_Release(This) (This)->lpVtbl->Release(This) /*** IAudioStreamVolume methods ***/ #define IAudioStreamVolume_GetChannelCount(This,pdwCount) (This)->lpVtbl->GetChannelCount(This,pdwCount) #define IAudioStreamVolume_SetChannelVolume(This,dwIndex,fLevel) (This)->lpVtbl->SetChannelVolume(This,dwIndex,fLevel) #define IAudioStreamVolume_GetChannelVolume(This,dwIndex,pfLevel) (This)->lpVtbl->GetChannelVolume(This,dwIndex,pfLevel) #define IAudioStreamVolume_SetAllVolumes(This,dwCount,pfVolumes) (This)->lpVtbl->SetAllVolumes(This,dwCount,pfVolumes) #define IAudioStreamVolume_GetAllVolumes(This,dwCount,pfVolumes) (This)->lpVtbl->GetAllVolumes(This,dwCount,pfVolumes) #else /*** IUnknown methods ***/ static FORCEINLINE HRESULT IAudioStreamVolume_QueryInterface(IAudioStreamVolume* This,REFIID riid,void **ppvObject) { return This->lpVtbl->QueryInterface(This,riid,ppvObject); } static FORCEINLINE ULONG IAudioStreamVolume_AddRef(IAudioStreamVolume* This) { return This->lpVtbl->AddRef(This); } static FORCEINLINE ULONG IAudioStreamVolume_Release(IAudioStreamVolume* This) { return This->lpVtbl->Release(This); } /*** IAudioStreamVolume methods ***/ static FORCEINLINE HRESULT IAudioStreamVolume_GetChannelCount(IAudioStreamVolume* This,UINT32 *pdwCount) { return This->lpVtbl->GetChannelCount(This,pdwCount); } static FORCEINLINE HRESULT IAudioStreamVolume_SetChannelVolume(IAudioStreamVolume* This,UINT32 dwIndex,const float fLevel) { return This->lpVtbl->SetChannelVolume(This,dwIndex,fLevel); } static FORCEINLINE HRESULT IAudioStreamVolume_GetChannelVolume(IAudioStreamVolume* This,UINT32 dwIndex,float *pfLevel) { return This->lpVtbl->GetChannelVolume(This,dwIndex,pfLevel); } static FORCEINLINE HRESULT IAudioStreamVolume_SetAllVolumes(IAudioStreamVolume* This,UINT32 dwCount,const float *pfVolumes) { return This->lpVtbl->SetAllVolumes(This,dwCount,pfVolumes); } static FORCEINLINE HRESULT IAudioStreamVolume_GetAllVolumes(IAudioStreamVolume* This,UINT32 dwCount,float *pfVolumes) { return This->lpVtbl->GetAllVolumes(This,dwCount,pfVolumes); } #endif #endif #endif HRESULT STDMETHODCALLTYPE IAudioStreamVolume_GetChannelCount_Proxy( IAudioStreamVolume* This, UINT32 *pdwCount); void __RPC_STUB IAudioStreamVolume_GetChannelCount_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioStreamVolume_SetChannelVolume_Proxy( IAudioStreamVolume* This, UINT32 dwIndex, const float fLevel); void __RPC_STUB IAudioStreamVolume_SetChannelVolume_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioStreamVolume_GetChannelVolume_Proxy( IAudioStreamVolume* This, UINT32 dwIndex, float *pfLevel); void __RPC_STUB IAudioStreamVolume_GetChannelVolume_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioStreamVolume_SetAllVolumes_Proxy( IAudioStreamVolume* This, UINT32 dwCount, const float *pfVolumes); void __RPC_STUB IAudioStreamVolume_SetAllVolumes_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IAudioStreamVolume_GetAllVolumes_Proxy( IAudioStreamVolume* This, UINT32 dwCount, float *pfVolumes); void __RPC_STUB IAudioStreamVolume_GetAllVolumes_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); #endif /* __IAudioStreamVolume_INTERFACE_DEFINED__ */ /***************************************************************************** * IChannelAudioVolume interface */ #ifndef __IChannelAudioVolume_INTERFACE_DEFINED__ #define __IChannelAudioVolume_INTERFACE_DEFINED__ DEFINE_GUID(IID_IChannelAudioVolume, 0x1c158861, 0xb533, 0x4b30, 0xb1,0xcf, 0xe8,0x53,0xe5,0x1c,0x59,0xb8); #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("1c158861-b533-4b30-b1cf-e853e51c59b8") IChannelAudioVolume : public IUnknown { virtual HRESULT STDMETHODCALLTYPE GetChannelCount( UINT32 *pdwCount) = 0; virtual HRESULT STDMETHODCALLTYPE SetChannelVolume( UINT32 dwIndex, const float fLevel, LPCGUID EventContext) = 0; virtual HRESULT STDMETHODCALLTYPE GetChannelVolume( UINT32 dwIndex, float *pfLevel) = 0; virtual HRESULT STDMETHODCALLTYPE SetAllVolumes( UINT32 dwCount, const float *pfVolumes, LPCGUID EventContext) = 0; virtual HRESULT STDMETHODCALLTYPE GetAllVolumes( UINT32 dwCount, float *pfVolumes) = 0; }; #ifdef __CRT_UUID_DECL __CRT_UUID_DECL(IChannelAudioVolume, 0x1c158861, 0xb533, 0x4b30, 0xb1,0xcf, 0xe8,0x53,0xe5,0x1c,0x59,0xb8) #endif #else typedef struct IChannelAudioVolumeVtbl { BEGIN_INTERFACE /*** IUnknown methods ***/ HRESULT (STDMETHODCALLTYPE *QueryInterface)( IChannelAudioVolume* This, REFIID riid, void **ppvObject); ULONG (STDMETHODCALLTYPE *AddRef)( IChannelAudioVolume* This); ULONG (STDMETHODCALLTYPE *Release)( IChannelAudioVolume* This); /*** IChannelAudioVolume methods ***/ HRESULT (STDMETHODCALLTYPE *GetChannelCount)( IChannelAudioVolume* This, UINT32 *pdwCount); HRESULT (STDMETHODCALLTYPE *SetChannelVolume)( IChannelAudioVolume* This, UINT32 dwIndex, const float fLevel, LPCGUID EventContext); HRESULT (STDMETHODCALLTYPE *GetChannelVolume)( IChannelAudioVolume* This, UINT32 dwIndex, float *pfLevel); HRESULT (STDMETHODCALLTYPE *SetAllVolumes)( IChannelAudioVolume* This, UINT32 dwCount, const float *pfVolumes, LPCGUID EventContext); HRESULT (STDMETHODCALLTYPE *GetAllVolumes)( IChannelAudioVolume* This, UINT32 dwCount, float *pfVolumes); END_INTERFACE } IChannelAudioVolumeVtbl; interface IChannelAudioVolume { CONST_VTBL IChannelAudioVolumeVtbl* lpVtbl; }; #ifdef COBJMACROS #ifndef WIDL_C_INLINE_WRAPPERS /*** IUnknown methods ***/ #define IChannelAudioVolume_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) #define IChannelAudioVolume_AddRef(This) (This)->lpVtbl->AddRef(This) #define IChannelAudioVolume_Release(This) (This)->lpVtbl->Release(This) /*** IChannelAudioVolume methods ***/ #define IChannelAudioVolume_GetChannelCount(This,pdwCount) (This)->lpVtbl->GetChannelCount(This,pdwCount) #define IChannelAudioVolume_SetChannelVolume(This,dwIndex,fLevel,EventContext) (This)->lpVtbl->SetChannelVolume(This,dwIndex,fLevel,EventContext) #define IChannelAudioVolume_GetChannelVolume(This,dwIndex,pfLevel) (This)->lpVtbl->GetChannelVolume(This,dwIndex,pfLevel) #define IChannelAudioVolume_SetAllVolumes(This,dwCount,pfVolumes,EventContext) (This)->lpVtbl->SetAllVolumes(This,dwCount,pfVolumes,EventContext) #define IChannelAudioVolume_GetAllVolumes(This,dwCount,pfVolumes) (This)->lpVtbl->GetAllVolumes(This,dwCount,pfVolumes) #else /*** IUnknown methods ***/ static FORCEINLINE HRESULT IChannelAudioVolume_QueryInterface(IChannelAudioVolume* This,REFIID riid,void **ppvObject) { return This->lpVtbl->QueryInterface(This,riid,ppvObject); } static FORCEINLINE ULONG IChannelAudioVolume_AddRef(IChannelAudioVolume* This) { return This->lpVtbl->AddRef(This); } static FORCEINLINE ULONG IChannelAudioVolume_Release(IChannelAudioVolume* This) { return This->lpVtbl->Release(This); } /*** IChannelAudioVolume methods ***/ static FORCEINLINE HRESULT IChannelAudioVolume_GetChannelCount(IChannelAudioVolume* This,UINT32 *pdwCount) { return This->lpVtbl->GetChannelCount(This,pdwCount); } static FORCEINLINE HRESULT IChannelAudioVolume_SetChannelVolume(IChannelAudioVolume* This,UINT32 dwIndex,const float fLevel,LPCGUID EventContext) { return This->lpVtbl->SetChannelVolume(This,dwIndex,fLevel,EventContext); } static FORCEINLINE HRESULT IChannelAudioVolume_GetChannelVolume(IChannelAudioVolume* This,UINT32 dwIndex,float *pfLevel) { return This->lpVtbl->GetChannelVolume(This,dwIndex,pfLevel); } static FORCEINLINE HRESULT IChannelAudioVolume_SetAllVolumes(IChannelAudioVolume* This,UINT32 dwCount,const float *pfVolumes,LPCGUID EventContext) { return This->lpVtbl->SetAllVolumes(This,dwCount,pfVolumes,EventContext); } static FORCEINLINE HRESULT IChannelAudioVolume_GetAllVolumes(IChannelAudioVolume* This,UINT32 dwCount,float *pfVolumes) { return This->lpVtbl->GetAllVolumes(This,dwCount,pfVolumes); } #endif #endif #endif HRESULT STDMETHODCALLTYPE IChannelAudioVolume_GetChannelCount_Proxy( IChannelAudioVolume* This, UINT32 *pdwCount); void __RPC_STUB IChannelAudioVolume_GetChannelCount_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IChannelAudioVolume_SetChannelVolume_Proxy( IChannelAudioVolume* This, UINT32 dwIndex, const float fLevel, LPCGUID EventContext); void __RPC_STUB IChannelAudioVolume_SetChannelVolume_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IChannelAudioVolume_GetChannelVolume_Proxy( IChannelAudioVolume* This, UINT32 dwIndex, float *pfLevel); void __RPC_STUB IChannelAudioVolume_GetChannelVolume_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IChannelAudioVolume_SetAllVolumes_Proxy( IChannelAudioVolume* This, UINT32 dwCount, const float *pfVolumes, LPCGUID EventContext); void __RPC_STUB IChannelAudioVolume_SetAllVolumes_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); HRESULT STDMETHODCALLTYPE IChannelAudioVolume_GetAllVolumes_Proxy( IChannelAudioVolume* This, UINT32 dwCount, float *pfVolumes); void __RPC_STUB IChannelAudioVolume_GetAllVolumes_Stub( IRpcStubBuffer* This, IRpcChannelBuffer* pRpcChannelBuffer, PRPC_MESSAGE pRpcMessage, DWORD* pdwStubPhase); #endif /* __IChannelAudioVolume_INTERFACE_DEFINED__ */ #define FACILIY_AUDCLNT 0x889 #define AUDCLNT_ERR(n) MAKE_HRESULT(SEVERITY_ERROR, FACILIY_AUDCLNT, n) #define AUDCLNT_SUCCESS(n) MAKE_SCODE(SEVERITY_SUCCESS, FACILIY_AUDCLNT, n) #define AUDCLNT_E_NOT_INITIALIZED AUDCLNT_ERR(1) #define AUDCLNT_E_ALREADY_INITIALIZED AUDCLNT_ERR(2) #define AUDCLNT_E_WRONG_ENDPOINT_TYPE AUDCLNT_ERR(3) #define AUDCLNT_E_DEVICE_INVALIDATED AUDCLNT_ERR(4) #define AUDCLNT_E_NOT_STOPPED AUDCLNT_ERR(5) #define AUDCLNT_E_BUFFER_TOO_LARGE AUDCLNT_ERR(6) #define AUDCLNT_E_OUT_OF_ORDER AUDCLNT_ERR(7) #define AUDCLNT_E_UNSUPPORTED_FORMAT AUDCLNT_ERR(8) #define AUDCLNT_E_INVALID_SIZE AUDCLNT_ERR(9) #define AUDCLNT_E_DEVICE_IN_USE AUDCLNT_ERR(0x0a) #define AUDCLNT_E_BUFFER_OPERATION_PENDING AUDCLNT_ERR(0x0b) #define AUDCLNT_E_THREAD_NOT_REGISTERED AUDCLNT_ERR(0x0c) #define AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED AUDCLNT_ERR(0x0e) #define AUDCLNT_E_ENDPOINT_CREATE_FAILED AUDCLNT_ERR(0x0f) #define AUDCLNT_E_SERVICE_NOT_RUNNING AUDCLNT_ERR(0x10) #define AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED AUDCLNT_ERR(0x11) #define AUDCLNT_E_EXCLUSIVE_MODE_ONLY AUDCLNT_ERR(0x12) #define AUDCLNT_E_BUFDURATION_PERIOD_NOT_EQUAL AUDCLNT_ERR(0x13) #define AUDCLNT_E_EVENTHANDLE_NOT_SET AUDCLNT_ERR(0x14) #define AUDCLNT_E_INCORRECT_BUFFER_SIZE AUDCLNT_ERR(0x15) #define AUDCLNT_E_BUFFER_SIZE_ERROR AUDCLNT_ERR(0x16) #define AUDCLNT_E_CPUUSAGE_EXCEEDED AUDCLNT_ERR(0x17) #define AUDCLNT_E_BUFFER_ERROR AUDCLNT_ERR(0x18) #define AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED AUDCLNT_ERR(0x19) #define AUDCLNT_E_INVALID_DEVICE_PERIOD AUDCLNT_ERR(0x20) #define AUDCLNT_E_INVALID_STREAM_FLAG AUDCLNT_ERR(0x021) #define AUDCLNT_E_ENDPOINT_OFFLOAD_NOT_CAPABLE AUDCLNT_ERR(0x022) #define AUDCLNT_E_OUT_OF_OFFLOAD_RESOURCES AUDCLNT_ERR(0x023) #define AUDCLNT_E_OFFLOAD_MODE_ONLY AUDCLNT_ERR(0x024) #define AUDCLNT_E_NONOFFLOAD_MODE_ONLY AUDCLNT_ERR(0x025) #define AUDCLNT_E_RESOURCES_INVALIDATED AUDCLNT_ERR(0x026) #define AUDCLNT_S_BUFFER_EMPTY AUDCLNT_SUCCESS(0x1) #define AUDCLNT_S_THREAD_ALREADY_REGISTERED AUDCLNT_SUCCESS(0x2) #define AUDCLNT_S_POSITION_STALLED AUDCLNT_SUCCESS(0x3) /* Begin additional prototypes for all interfaces */ /* End additional prototypes */ #ifdef __cplusplus } #endif #endif /* __audioclient_h__ */