|
|
|
IDirectSoundFXCompressor8 Interface |
|
' ***************************************************************************************
' IDirectSoundFXCompressor8 Interface
' The IDirectSoundFXCompressor8 interface is used to set and retrieve effect parameters on
' a buffer that supports compression.
' This interface is obtained by calling IDirectSoundBuffer8::GetObjectInPath on the buffer
' that supports the effect.
' ***************************************************************************************
' ***************************************************************************************
'DECLARE_INTERFACE_(IDirectSoundFXCompressor, IUnknown)
'{
' // IUnknown methods
' 0. STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE;
' 1. STDMETHOD_(ULONG,AddRef) (THIS) PURE;
' 2. STDMETHOD_(ULONG,Release) (THIS) PURE;
' // IDirectSoundFXCompressor methods
' 3. STDMETHOD(SetAllParameters) (THIS_ LPCDSFXCompressor pcDsFxCompressor) PURE;
' 4. STDMETHOD(GetAllParameters) (THIS_ LPDSFXCompressor pDsFxCompressor) PURE;
'};
' ***************************************************************************************
' ***************************************************************************************
' SetAllParameters
' The SetAllParameters method sets the compression parameters of a buffer.
' HRESULT SetAllParameters(
' LPCDSFXCompressor pcDsFxCompressor
' );
' ***************************************************************************************
FUNCTION IDirectSoundFXCompressor8_SetAllParameters ALIAS "IDirectSoundFXCompressor8_SetAllParameters" ( _
BYVAL pthis AS DWORD PTR, BYREF pcDsFxCompressor AS DSFXCompressor) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[3] USING IDirectSoundFXCompressor8_SetAllParameters(pthis, pcDsFxCompressor) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ***************************************************************************************
' ***************************************************************************************
' GetAllParameters
' The GetAllParameters method retrieves the compression parameters of a buffer.
' HRESULT GetAllParameters(
' LPDSFXCompressor pDsFxCompressor
' );
' ***************************************************************************************
FUNCTION IDirectSoundFXCompressor8_GetAllParameters ALIAS "IDirectSoundFXCompressor8_GetAllParameters" ( _
BYVAL pthis AS DWORD PTR, BYREF pDsFxCompressor AS DSFXCompressor) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[4] USING IDirectSoundFXCompressor8_GetAllParameters(pthis, pDsFxCompressor) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ***************************************************************************************
|
Page last updated on Wednesday, 15 March 2006 01:34:43 +0100