DMusPort.h
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:

DirextX编程

开发平台:

Visual C++

  1. // Copyright (C) 1999 DXGuide.  All Rights Reserved.
  2. // File: DMusPort.h
  3. #ifndef _DMUSPORT__H
  4. #define _DMUSPORT__H
  5. #if _MSC_VER >= 1000
  6. #pragma once
  7. #endif // _MSC_VER >= 1000
  8. #pragma warning(disable: 4201)
  9. #include <dmusicc.h>
  10. #pragma warning(default: 4201)
  11. class CDMusPort
  12. {
  13. friend class CDirectMusic;
  14. friend class CDMusPerformance;
  15. protected:
  16. CDMusPort(void);
  17. virtual ~CDMusPort();
  18. public:
  19. HRESULT Activate(BOOL  bActive);
  20. HRESULT SetDirectSound(
  21. LPDIRECTSOUND  pDirectSound,
  22. LPDIRECTSOUNDBUFFER  pDirectSoundBuffer);
  23. HRESULT DownloadInstrument(
  24. IDirectMusicInstrument*  pInstrument,
  25. IDirectMusicDownloadedInstrument**  ppDownloadedInstrument,
  26. DMUS_NOTERANGE*  pNoteRanges,
  27. DWORD  dwNumNoteRanges);
  28. HRESULT UnloadInstrument(
  29. IDirectMusicDownloadedInstrument*  pDownloadedInstrument);
  30. HRESULT GetFormat(LPWAVEFORMATEX  pWaveFormatEx,
  31. LPDWORD  pdwWaveFormatExSize, LPDWORD  pdwBufferSize);
  32. protected:
  33. IDirectMusicPort* m_lpDirectMusicPort;
  34. };
  35. #endif // _DMUSPORT__H