IDirectSoundCaptureFXNoiseSupress8 Interface

 

 

' ***************************************************************************************
' IDirectSoundCaptureFXNoiseSuppress8 Interface
' The IDirectSoundCaptureFXNoiseSuppress8 interface is used to set and retrieve parameters
' on a capture buffer that supports noise suppression. This interface requires Microsoft
' Windows XP or later.
' IDirectSoundCaptureFXNoiseSuppress8 is a define for IDirectSoundCaptureFXNoiseSuppress.
' The interface names are interchangeable.
' ***************************************************************************************

' ***************************************************************************************
'DECLARE_INTERFACE_(IDirectSoundCaptureFXNoiseSuppress, IUnknown)
'{
'    // IUnknown methods
'  0.  STDMETHOD(QueryInterface)       (THIS_ REFIID, LPVOID *) PURE;
'  1.  STDMETHOD_(ULONG,AddRef)        (THIS) PURE;
'  2.  STDMETHOD_(ULONG,Release)       (THIS) PURE;

'    // IDirectSoundCaptureFXNoiseSuppress methods
'  3.  STDMETHOD(SetAllParameters)     (THIS_ LPCDSCFXNoiseSuppress pcDscFxNoiseSuppress) PURE;
'  4.  STDMETHOD(GetAllParameters)     (THIS_ LPDSCFXNoiseSuppress pDscFxNoiseSuppress) PURE;
'  5.  STDMETHOD(Reset)                (THIS) PURE;
'};
' ***************************************************************************************

' ***************************************************************************************
' SetAllParameters
' The SetAllParameters method sets the noise suppression parameters of a buffer.
' HRESULT SetAllParameters(
'   LPCDSCFXNoiseSuppression  pcDscFxNoiseSuppress
' );
' ***************************************************************************************
FUNCTION IDirectSoundCaptureFXNoiseSuppress8_SetAllParameters ALIAS "IDirectSoundCaptureFXNoiseSuppress8_SetAllParameters" ( _
    BYVAL pthis AS DWORD PTR, BYREF pcDscFxNoiseSuppress AS DSCFXNoiseSuppress) EXPORT AS LONG

    LOCAL HRESULT AS LONG
    IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
    CALL DWORD @@pthis[3] USING IDirectSoundCaptureFXNoiseSuppress8_SetAllParameters(pthis, pcDscFxNoiseSuppress) TO HRESULT
    FUNCTION = HRESULT

END FUNCTION
' ***************************************************************************************

' ***************************************************************************************
' GetAllParameters
' The GetAllParameters method retrieves the noise suppression parameters of a buffer.
' HRESULT GetAllParameters(
'   LPDSCFXNoiseSuppress pDsFxNoiseSuppress
' );
' ***************************************************************************************
FUNCTION IDirectSoundCaptureFXNoiseSuppress8_GetAllParameters ALIAS "IDirectSoundCaptureFXNoiseSuppress8_GetAllParameters" ( _
    BYVAL pthis AS DWORD PTR, BYREF pDscFxNoiseSuppress AS DSCFXNoiseSuppress) EXPORT AS LONG

    LOCAL HRESULT AS LONG
    IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
    CALL DWORD @@pthis[4] USING IDirectSoundCaptureFXNoiseSuppress8_GetAllParameters(pthis, pDscFxNoiseSuppress) TO HRESULT
    FUNCTION = HRESULT

END FUNCTION
' ***************************************************************************************

' ***************************************************************************************
' Reset
' The IDirectSoundCaptureFXNoiseSuppress8::Reset method resets the effect to its initial
' state.
' HRESULT Reset();
' ***************************************************************************************
FUNCTION IDirectSoundCaptureFXNoiseSuppress8_Reset ALIAS "IDirectSoundCaptureFXNoiseSuppress8_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[5] USING IDirectSoundCaptureFXNoiseSuppress8_Reset(pthis) TO HRESULT
    FUNCTION = HRESULT

END FUNCTION
' ***************************************************************************************
 

 

Page last updated on Wednesday, 15 March 2006 01:50:10 +0100