IDirectSoundFXEcho8 Interface

 

 

' ***************************************************************************************
' IDirectSoundFXEcho8 Interface
' The IDirectSoundFXEcho8 interface is used to set and retrieve effect parameters on a
' buffer that supports echo.
' This interface is obtained by calling IDirectSoundBuffer8::GetObjectInPath on the buffer
' that supports the effect.
' ***************************************************************************************

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

'    // IDirectSoundFXEcho methods
'  3.  STDMETHOD(SetAllParameters)     (THIS_ LPCDSFXEcho pcDsFxEcho) PURE;
'  4.  STDMETHOD(GetAllParameters)     (THIS_ LPDSFXEcho pDsFxEcho) PURE;
'};
' ***************************************************************************************

' ***************************************************************************************
' SetAllParameters
' The SetAllParameters method sets the echo parameters of a buffer.
' HRESULT SetAllParameters(
'   LPCDSFXEcho  pcDsFxEcho
' );
' ***************************************************************************************
FUNCTION IDirectSoundFXEcho8_SetAllParameters ALIAS "IDirectSoundFXEcho8_SetAllParameters" ( _
    BYVAL pthis AS DWORD PTR, BYREF pcDsFxEcho AS DSFXEcho) EXPORT AS LONG

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

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

' ***************************************************************************************
' GetAllParameters
' The GetAllParameters method retrieves the echo parameters of a buffer.
' HRESULT GetAllParameters(
'   LPDSFXEcho pDsFxEcho
' );
' ***************************************************************************************
FUNCTION IDirectSoundFXEcho8_GetAllParameters ALIAS "IDirectSoundFXEcho8_GetAllParameters" ( _
    BYVAL pthis AS DWORD PTR, BYREF pDsFxEcho AS DSFXEcho) EXPORT AS LONG

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

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

 

Page last updated on Wednesday, 15 March 2006 01:28:58 +0100