Windows2003-3790/multimedia/directx/dmusic/dmtool/velocity.h

68 lines
2.0 KiB
C
Raw Normal View History

2001-01-01 00:00:00 +01:00
#ifndef _VELOCITY_TOOL_
#define _VELOCITY_TOOL_
#include "basetool.h"
#include "tools.h"
#include "param.h"
#include "toolhelp.h"
#include "..\dmtoolprp\toolprops.h"
class CVelocityTool :
public CBaseTool ,
public CParamsManager,
public CToolHelper,
public IPersistStream,
public ISpecifyPropertyPages,
public IDirectMusicVelocityTool
{
public:
CVelocityTool();
public:
// IUnknown
STDMETHODIMP QueryInterface(const IID &iid, void **ppv) ;
STDMETHODIMP_(ULONG) AddRef() ;
STDMETHODIMP_(ULONG) Release() ;
// IPersist functions
STDMETHODIMP GetClassID(CLSID* pClassID);
// IPersistStream functions
STDMETHODIMP IsDirty();
STDMETHODIMP Load(IStream* pStream);
STDMETHODIMP Save(IStream* pStream, BOOL fClearDirty);
STDMETHODIMP GetSizeMax(ULARGE_INTEGER* pcbSize);
// ISpecifyPropertyPages
STDMETHODIMP GetPages(CAUUID *pPages);
// IDirectMusicTool
// STDMETHODIMP Init(IDirectMusicGraph* pGraph) ;
// STDMETHODIMP GetMsgDeliveryType(DWORD* pdwDeliveryType ) ;
// STDMETHODIMP GetMediaTypeArraySize(DWORD* pdwNumElements ) ;
// STDMETHODIMP GetMediaTypes(DWORD** padwMediaTypes, DWORD dwNumElements) ;
STDMETHODIMP ProcessPMsg(IDirectMusicPerformance* pPerf, DMUS_PMSG* pDMUS_PMSG) ;
// STDMETHODIMP Flush(IDirectMusicPerformance* pPerf, DMUS_PMSG* pDMUS_PMSG, REFERENCE_TIME rt) ;
// IDirectMusicTool8
STDMETHODIMP Clone( IDirectMusicTool ** ppTool) ;
// IDirectMusicVelocityTool
STDMETHODIMP SetStrength(long lStrength) ;
STDMETHODIMP SetLowLimit(long lVelocityOut) ;
STDMETHODIMP SetHighLimit(long lVelocityOut) ;
STDMETHODIMP SetCurveStart(long lVelocityIn) ;
STDMETHODIMP SetCurveEnd(long lVelocityIn) ;
STDMETHODIMP GetStrength(long * plStrength) ;
STDMETHODIMP GetLowLimit(long * plVelocityOut) ;
STDMETHODIMP GetHighLimit(long * plVelocityOut) ;
STDMETHODIMP GetCurveStart(long * plVelocityIn) ;
STDMETHODIMP GetCurveEnd(long * plVelocityIn) ;
protected:
};
#endif // _VELOCITY_TOOL_