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.

56 lines
1.8 KiB

  1. // Copyright (c) 1999 Microsoft Corporation. All rights reserved.
  2. //
  3. // Declaration of CAutDirectMusicPerformance.
  4. // IDispatch interface for IDirectMusicPerformance.
  5. // Unly usable via aggregation within an IDirectMusicPerformance object.
  6. //
  7. #pragma once
  8. #include "autbaseimp.h"
  9. class CAutDirectMusicPerformance;
  10. typedef CAutBaseImp<CAutDirectMusicPerformance, IDirectMusicPerformance, &IID_IDirectMusicPerformance> BaseImpPerf;
  11. class CAutDirectMusicPerformance
  12. : public BaseImpPerf
  13. {
  14. public:
  15. static HRESULT CreateInstance(IUnknown* pUnknownOuter, const IID& iid, void** ppv);
  16. private:
  17. // Methods
  18. CAutDirectMusicPerformance(
  19. IUnknown* pUnknownOuter,
  20. const IID& iid,
  21. void** ppv,
  22. HRESULT *phr);
  23. // Automation
  24. HRESULT SetMasterTempo(AutDispatchDecodedParams *paddp);
  25. HRESULT GetMasterTempo(AutDispatchDecodedParams *paddp);
  26. HRESULT SetMasterVolume(AutDispatchDecodedParams *paddp);
  27. HRESULT GetMasterVolume(AutDispatchDecodedParams *paddp);
  28. HRESULT SetMasterGrooveLevel(AutDispatchDecodedParams *paddp);
  29. HRESULT GetMasterGrooveLevel(AutDispatchDecodedParams *paddp);
  30. HRESULT SetMasterTranspose(AutDispatchDecodedParams *paddp);
  31. HRESULT GetMasterTranspose(AutDispatchDecodedParams *paddp);
  32. HRESULT _Trace(AutDispatchDecodedParams *paddp);
  33. HRESULT Rand(AutDispatchDecodedParams *paddp);
  34. // Helpers
  35. HRESULT GetMasterParam(const GUID &guid, void *pParam, DWORD dwSize); // Calls GetGlobalParam, but returns S_OK if the param hasn't been set previously.
  36. // data
  37. SmartRef::ComPtr<IDirectMusicGraph> m_scomGraph;
  38. short m_nTranspose;
  39. short m_nVolume;
  40. long m_lRand;
  41. public:
  42. // Dispatch info for CAutBaseImp
  43. static const AutDispatchMethod ms_Methods[];
  44. static const DispatchHandlerEntry<CAutDirectMusicPerformance> ms_Handlers[];
  45. // Name for CAutBaseImp
  46. static const WCHAR ms_wszClassName[];
  47. };