本文整理汇总了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;
}
示例2: deactivate
void cGameStateChart::deactivate(){
CAudioManager *pAudio = CAudioManager::Instance();
pAudio->KillAll();
//g_Audio.KillAll();
}
示例3: Deactivate
void CGameStateHelp::Deactivate(CGameData &data){
CAudioManager *pAudio = CAudioManager::Instance();
pAudio->KillAll();
}
示例4:
void CGameStatePlay2::Deactivate(){
CAudioManager *pAudio = CAudioManager::Instance();
pAudio->KillAll();
}
示例5: deactivate
void cGameStateFireControl::deactivate(){
CAudioManager *pAudio = CAudioManager::Instance();
pAudio->KillAll();
//g_Audio.KillAll();
}
示例6: deactivate
void cGameStateEditor::deactivate(){
CAudioManager *pAudio = CAudioManager::Instance();
pAudio->KillAll();
// Delete<psys::PSystem*>( Gun );
}
示例7: deactivate
void cGameStateIntro::deactivate(){
CAudioManager *pAudio = CAudioManager::Instance();
pAudio->KillAll();
}