示例#1
0
//コンストラクタ
CMusic::CMusic(HWND *hWnd, LPCTSTR file_name)
:m_hWnd(hWnd),m_hResult(0),m_lpGraph(NULL),
m_lpMediaControl(NULL),m_lpMediaEvent(NULL),m_lpMediaSeeking(NULL),
m_lpVideoWindow(NULL),m_lpBasicVideo(NULL),m_lpBasicAudio(NULL)
{
	LoadMusicFile(file_name);
}
示例#2
0
void CGeneral::LoadMusic()
{
   if (g_fNoMusic) {
      return;
   }

   m_musBG[0] = LoadMusicFile(MUSIC_DIR "music.ogg");
   m_musBG[1] = LoadMusicFile(MUSIC_DIR "music1.ogg");
   m_musBG[2] = LoadMusicFile(MUSIC_DIR "musicc.ogg");
   m_musBG[3] = LoadMusicFile(MUSIC_DIR "musicp.ogg");
   m_musBG[4] = LoadMusicFile(MUSIC_DIR "bet.ogg");
   m_musBG[5] = LoadMusicFile(MUSIC_DIR "bonus.ogg");
   m_musBG[6] = LoadMusicFile(MUSIC_DIR "musicb.ogg");

   m_musGameOver = LoadMusicFile(MUSIC_DIR "gameover.ogg");
   m_musWin = LoadMusicFile(MUSIC_DIR "win.ogg");
   m_musEndRound = LoadMusicFile(MUSIC_DIR "musice.ogg");
   m_musBGame = LoadMusicFile(MUSIC_DIR "bgame.ogg");

}