|
|
|
IDirectSoundCaptureFXAec8 Interface |
|
' ***************************************************************************************
' IDirectSoundCaptureFXAec8 Interface
' The IDirectSoundCaptureFXAec8 interface is used to set and retrieve parameters on a
' capture buffer that supports acoustic echo cancellation. This interface requires
' Microsoft Windows XP or later operating systems.
' IDirectSoundCaptureFXAec8 is a define for IDirectSoundCaptureFXAec. The interface names
' are interchangeable.
' ***************************************************************************************
' ***************************************************************************************
'DECLARE_INTERFACE_(IDirectSoundCaptureFXAec, IUnknown)
'{
' // IUnknown methods
' 0. STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE;
' 1. STDMETHOD_(ULONG,AddRef) (THIS) PURE;
' 2. STDMETHOD_(ULONG,Release) (THIS) PURE;
' // IDirectSoundCaptureFXAec methods
' 3. STDMETHOD(SetAllParameters) (THIS_ LPCDSCFXAec pDscFxAec) PURE;
' 4. STDMETHOD(GetAllParameters) (THIS_ LPDSCFXAec pDscFxAec) PURE;
' 5. STDMETHOD(GetStatus) (THIS_ PDWORD pdwStatus) PURE;
' 6. STDMETHOD(Reset) (THIS) PURE;
'};
' ***************************************************************************************
' ***************************************************************************************
' SetAllParameters
' The SetAllParameters method sets the acoustic echo cancellation parameters of a buffer.
' HRESULT SetAllParameters(
' LPCDSCFXAec pcDscFxAec
' );
' ***************************************************************************************
FUNCTION IDirectSoundCaptureFXAec8_SetAllParameters ALIAS "IDirectSoundCaptureFXAec8_SetAllParameters" ( _
BYVAL pthis AS DWORD PTR, BYREF pcDscFxAec AS DSCFXAec) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[3] USING IDirectSoundCaptureFXAec8_SetAllParameters(pthis, pcDscFxAec) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ***************************************************************************************
' ***************************************************************************************
' GetAllParameters
' The GetAllParameters method retrieves the acoustic echo cancellation parameters of a
' buffer.
' HRESULT GetAllParameters(
' LPDSCFXAec pDscFxAec
' );
' ***************************************************************************************
FUNCTION IDirectSoundCaptureFXAec8_GetAllParameters ALIAS "IDirectSoundCaptureFXAec8_GetAllParameters" ( _
BYVAL pthis AS DWORD PTR, BYREF pDscFxAec AS DSCFXAec) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[4] USING IDirectSoundCaptureFXAec8_GetAllParameters(pthis, pDscFxAec) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ***************************************************************************************
' ***************************************************************************************
' GetStatus
' The IDirectSoundCaptureFXAec8::GetStatus method retrieves the status of the effect.
' HRESULT GetStatus(
' PDWORD pdwStatus
' );
' ***************************************************************************************
FUNCTION IDirectSoundCaptureFXAec8_GetStatus ALIAS "IDirectSoundCaptureFXAec8_GetStatus" ( _
BYVAL pthis AS DWORD PTR, BYREF pdwStatus AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[5] USING IDirectSoundCaptureFXAec8_GetStatus(pthis, pdwStatus) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ***************************************************************************************
' ***************************************************************************************
' Reset
' The IDirectSoundCaptureFXAec8::Reset method resets the effect to its initial state.
' HRESULT Reset();
' ***************************************************************************************
FUNCTION IDirectSoundCaptureFXAec8_Reset ALIAS "IDirectSoundCaptureFXAec8_Reset" (BYVAL pthis AS DWORD PTR) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[6] USING IDirectSoundCaptureFXAec8_Reset(pthis) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ***************************************************************************************
|
Page last updated on Wednesday, 15 March 2006 01:46:55 +0100