Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.8 KiB

  1. #ifndef _QUANTIZE_TOOL_
  2. #define _QUANTIZE_TOOL_
  3. #include "basetool.h"
  4. #include "tools.h"
  5. #include "param.h"
  6. #include "toolhelp.h"
  7. #include "..\dmtoolprp\toolprops.h"
  8. class CQuantizeTool :
  9. public CBaseTool ,
  10. public CParamsManager,
  11. public CToolHelper,
  12. public IPersistStream,
  13. public ISpecifyPropertyPages,
  14. public IDirectMusicQuantizeTool
  15. {
  16. public:
  17. CQuantizeTool();
  18. public:
  19. // IUnknown
  20. STDMETHODIMP QueryInterface(const IID &iid, void **ppv) ;
  21. STDMETHODIMP_(ULONG) AddRef() ;
  22. STDMETHODIMP_(ULONG) Release() ;
  23. // IPersist functions
  24. STDMETHODIMP GetClassID(CLSID* pClassID);
  25. // IPersistStream functions
  26. STDMETHODIMP IsDirty();
  27. STDMETHODIMP Load(IStream* pStream);
  28. STDMETHODIMP Save(IStream* pStream, BOOL fClearDirty);
  29. STDMETHODIMP GetSizeMax(ULARGE_INTEGER* pcbSize);
  30. // ISpecifyPropertyPages
  31. STDMETHODIMP GetPages(CAUUID *pPages);
  32. // IDirectMusicTool
  33. // STDMETHODIMP Init(IDirectMusicGraph* pGraph) ;
  34. // STDMETHODIMP GetMsgDeliveryType(DWORD* pdwDeliveryType ) ;
  35. // STDMETHODIMP GetMediaTypeArraySize(DWORD* pdwNumElements ) ;
  36. // STDMETHODIMP GetMediaTypes(DWORD** padwMediaTypes, DWORD dwNumElements) ;
  37. STDMETHODIMP ProcessPMsg(IDirectMusicPerformance* pPerf, DMUS_PMSG* pDMUS_PMSG) ;
  38. // STDMETHODIMP Flush(IDirectMusicPerformance* pPerf, DMUS_PMSG* pDMUS_PMSG, REFERENCE_TIME rt) ;
  39. // IDirectMusicTool8
  40. STDMETHODIMP Clone( IDirectMusicTool ** ppTool) ;
  41. // IDirectMusicQuantizeTool
  42. STDMETHODIMP SetStrength(DWORD dwStrength) ;
  43. STDMETHODIMP SetTimeUnit(DWORD dwTimeUnit) ;
  44. STDMETHODIMP SetResolution(DWORD dwResolution) ;
  45. STDMETHODIMP SetType(DWORD dwType) ;
  46. STDMETHODIMP GetStrength(DWORD * pdwStrength) ;
  47. STDMETHODIMP GetTimeUnit(DWORD * pdwTimeUnit) ;
  48. STDMETHODIMP GetResolution(DWORD * pdwResolution) ;
  49. STDMETHODIMP GetType(DWORD * pdwType) ;
  50. protected:
  51. };
  52. #endif // _QUANTIZE_TOOL_