DSMusicBuffer.h
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1999 DXGuide. All Rights Reserved.
- // File: DSMusicBuffer.h
- #ifndef _DSMUSICBUFFER__H
- #define _DSMUSICBUFFER__H
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- #include "DSBuffer.h"
- class CDMusPort;
- class CDMusPerformance;
- class CDSMusicBuffer : public CDSBuffer
- {
- public:
- CDSMusicBuffer(void);
- virtual ~CDSMusicBuffer();
- public:
- virtual bool Create(CDirectSound* pDS, LPCTSTR lpszFileName,
- CPackFileManager* pPackFileManager = NULL,
- int nBuffer = 1,
- DWORD dwFlags = DSBCAPS_LOCSOFTWARE);
- public:
- virtual bool Play(void);
- virtual bool Stop(int nIndex = 0);
- virtual void SetLoop(bool bLoop);
- protected:
- CDMusPerformance* m_pDMusPerformance;
- };
- #endif // _DSMUSICBUFFER__H