⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 directshowmusic.h

📁 游戏音频程序设计-Beginning.Game.Audio.Programming
💻 H
字号:
// DirectShowMusic.h: interface for the CDirectShowMusic class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DIRECTSHOWMUSIC_H__22D78C2E_5171_4045_9795_8433DADECCE7__INCLUDED_)
#define AFX_DIRECTSHOWMUSIC_H__22D78C2E_5171_4045_9795_8433DADECCE7__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <dshow.h>

#include "Sound.h"
#include <vector>

namespace AudioEngine {

class CDirectShowMusic : public CSound  
{
public:
  friend class CAudioManager;
	CDirectShowMusic(CAudioManager *mgr);
	virtual ~CDirectShowMusic();

  // these methods are required by every sound in the game
  virtual bool Play();
  virtual bool Stop();
  virtual bool IsPlaying();

  static void DispatchDirectShowNotifications();
  void ProcessMyDirectShowNotifications();

protected:
  bool m_IsPlaying;
  IGraphBuilder *m_GraphBuilder;
  IMediaControl *m_MediaControl;
  IMediaEventEx *m_MediaEventEx;

  static std::vector<CDirectShowMusic *> m_AllDSMusicObjects;
};

} // namespace

#endif // !defined(AFX_DIRECTSHOWMUSIC_H__22D78C2E_5171_4045_9795_8433DADECCE7__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -