IDirectSoundFXDistortion8 Interface

 

 

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

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

'    // IDirectSoundFXDistortion methods
'  3.  STDMETHOD(SetAllParameters)     (THIS_ LPCDSFXDistortion pcDsFxDistortion) PURE;
'  4.  STDMETHOD(GetAllParameters)     (THIS_ LPDSFXDistortion pDsFxDistortion) PURE;
'};
' ***************************************************************************************

' ***************************************************************************************
' SetAllParameters
' The SetAllParameters method sets the distortion parameters of a buffer.
' HRESULT SetAllParameters(
'   LPCDSFXDistortion  pcDsFxDistortion
' );
' ***************************************************************************************
FUNCTION IDirectSoundFXDistortion8_SetAllParameters ALIAS "IDirectSoundFXDistortion8_SetAllParameters" ( _
    BYVAL pthis AS DWORD PTR, BYREF pcDsFxDistortion AS DSFXDistortion) EXPORT AS LONG

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

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

' ***************************************************************************************
' GetAllParameters
' The GetAllParameters method retrieves the distortion parameters of a buffer.
' HRESULT GetAllParameters(
'   LPDSFXDistortion  pDsFxDistortion
' );
' ***************************************************************************************
FUNCTION IDirectSoundFXDistortion8_GetAllParameters ALIAS "IDirectSoundFXDistortion8_GetAllParameters" ( _
    BYVAL pthis AS DWORD PTR, BYREF pDsFxDistortion AS DSFXDistortion) EXPORT AS LONG

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

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

 

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