DMusPort.h
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1999 DXGuide. All Rights Reserved.
- // File: DMusPort.h
- #ifndef _DMUSPORT__H
- #define _DMUSPORT__H
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- #pragma warning(disable: 4201)
- #include <dmusicc.h>
- #pragma warning(default: 4201)
- class CDMusPort
- {
- friend class CDirectMusic;
- friend class CDMusPerformance;
- protected:
- CDMusPort(void);
- virtual ~CDMusPort();
- public:
- HRESULT Activate(BOOL bActive);
- HRESULT SetDirectSound(
- LPDIRECTSOUND pDirectSound,
- LPDIRECTSOUNDBUFFER pDirectSoundBuffer);
- HRESULT DownloadInstrument(
- IDirectMusicInstrument* pInstrument,
- IDirectMusicDownloadedInstrument** ppDownloadedInstrument,
- DMUS_NOTERANGE* pNoteRanges,
- DWORD dwNumNoteRanges);
- HRESULT UnloadInstrument(
- IDirectMusicDownloadedInstrument* pDownloadedInstrument);
- HRESULT GetFormat(LPWAVEFORMATEX pWaveFormatEx,
- LPDWORD pdwWaveFormatExSize, LPDWORD pdwBufferSize);
- protected:
- IDirectMusicPort* m_lpDirectMusicPort;
- };
- #endif // _DMUSPORT__H