当前位置: 首页>>代码示例>>C++>>正文


C++ CAudioManager::KillAll方法代码示例

本文整理汇总了C++中CAudioManager::KillAll方法的典型用法代码示例。如果您正苦于以下问题:C++ CAudioManager::KillAll方法的具体用法?C++ CAudioManager::KillAll怎么用?C++ CAudioManager::KillAll使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CAudioManager的用法示例。


在下文中一共展示了CAudioManager::KillAll方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Shutdown

void Shutdown()
{
  CLog *pLog = CLog::Instance();
  CAudioManager *pAudio = CAudioManager::Instance();
  pLog->Log("************ Shutting Down ************");
	// Properly shut down the current game object first
	g_pCurrent->deactivate();
	delete g_pStatePlay;
  delete g_pStateMain;
  delete g_pStateIntro;
  delete g_pStateHistory;
  delete g_pStateReload;
  delete g_pStateCredits;
  delete g_pStateSelect;
  delete g_pStateAwards;
  delete g_pStateWin;
  delete g_pStateLose;
  delete g_pStateStatus;
  delete g_pStateChart;
  delete g_pStateControl;
  delete g_pStateEnd;
  delete g_pStateScope;
  delete g_pStateSonar;
  delete g_pStateFireControl;
  delete g_pStateRadar;

  pLog->Log("Game state pointers deleted!");
  pAudio->KillAll();
  ::ShowCursor(false);
	//::Sleep(2000);
	//::ShowCursor(true); //turn mouse cursor back on
	pLog->Log("Audio sounds are all killed!");
	pLog->Log("*************************************");
	pLog->Log("Program ended!");
	pLog->Log("*************************************");

	// Kill the main window
	DestroyWindow( g_hWnd );
	g_hWnd = NULL;
}
开发者ID:ChuckBolin,项目名称:Sinking,代码行数:40,代码来源:main.cpp

示例2: deactivate

void cGameStateChart::deactivate(){
  CAudioManager *pAudio = CAudioManager::Instance();
  pAudio->KillAll();
  //g_Audio.KillAll();
}
开发者ID:ChuckBolin,项目名称:Sinking,代码行数:5,代码来源:cGameStateChart.cpp

示例3: Deactivate

void CGameStateHelp::Deactivate(CGameData &data){
  CAudioManager *pAudio = CAudioManager::Instance();
  pAudio->KillAll();

}
开发者ID:ChuckBolin,项目名称:GoldenSpike,代码行数:5,代码来源:cGameStateHelp.cpp

示例4:

void CGameStatePlay2::Deactivate(){
  CAudioManager *pAudio = CAudioManager::Instance();
  pAudio->KillAll();

  
}
开发者ID:ChuckBolin,项目名称:GoldenSpike,代码行数:6,代码来源:CGameStatePlay2.cpp

示例5: deactivate

void cGameStateFireControl::deactivate(){
  CAudioManager *pAudio = CAudioManager::Instance();
  pAudio->KillAll();
  //g_Audio.KillAll();
}
开发者ID:ChuckBolin,项目名称:Sinking,代码行数:5,代码来源:CGameStateFireControl.cpp

示例6: deactivate

void cGameStateEditor::deactivate(){
  CAudioManager *pAudio = CAudioManager::Instance();
  pAudio->KillAll();
//  Delete<psys::PSystem*>( Gun );
  
}
开发者ID:ChuckBolin,项目名称:CookieStealingOgre,代码行数:6,代码来源:cGameStateEditor.cpp

示例7: deactivate

void cGameStateIntro::deactivate(){
  CAudioManager *pAudio = CAudioManager::Instance();
  pAudio->KillAll();
  
}
开发者ID:ChuckBolin,项目名称:Sinking,代码行数:5,代码来源:cGameStateIntro.cpp


注:本文中的CAudioManager::KillAll方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。