|
|
|
IDirectSoundFXGargle8 Interface |
|
' ***************************************************************************************
' IDirectSoundFXGargle8 Interface
' The IDirectSoundFXGargle8 interface is used to set and retrieve effect parameters on a
' buffer that supports amplitude modulation.
' This interface is obtained by calling IDirectSoundBuffer8::GetObjectInPath on the buffer
' that supports the effect.
' ***************************************************************************************
' ***************************************************************************************
'DECLARE_INTERFACE_(IDirectSoundFXGargle, IUnknown)
'{
' // IUnknown methods
' 0. STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE;
' 1. STDMETHOD_(ULONG,AddRef) (THIS) PURE;
' 2. STDMETHOD_(ULONG,Release) (THIS) PURE;
' // IDirectSoundFXGargle methods
' 3. STDMETHOD(SetAllParameters) (THIS_ LPCDSFXGargle pcDsFxGargle) PURE;
' 4. STDMETHOD(GetAllParameters) (THIS_ LPDSFXGargle pDsFxGargle) PURE;
'};
' ***************************************************************************************
' ***************************************************************************************
' SetAllParameters
' The SetAllParameters method sets the amplitude modulation parameters of a buffer.
' HRESULT SetAllParameters(
' LPCDSFXGargle pcDsFxGargle
' );
' ***************************************************************************************
FUNCTION IDirectSoundFXGargle8_SetAllParameters ALIAS "IDirectSoundFXGargle8_SetAllParameters" ( _
BYVAL pthis AS DWORD PTR, BYREF pcDsFxGargle AS DSFXGargle) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[3] USING IDirectSoundFXGargle8_SetAllParameters(pthis, pcDsFxGargle) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ***************************************************************************************
' ***************************************************************************************
' GetAllParameters
' The GetAllParameters method retrieves the amplitude modulation parameters of a buffer.
' HRESULT GetAllParameters(
' LPDSFXGargle pDsFxGargle
' );
' ***************************************************************************************
FUNCTION IDirectSoundFXGargle8_GetAllParameters ALIAS "IDirectSoundFXGargle8_GetAllParameters" ( _
BYVAL pthis AS DWORD PTR, BYREF pDsFxGargle AS DSFXGargle) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[4] USING IDirectSoundFXGargle8_GetAllParameters(pthis, pDsFxGargle) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ***************************************************************************************
|
Page last updated on Wednesday, 15 March 2006 01:20:56 +0100