//----------------------------------------------------------------------------------------- // Sound Engine termination. //----------------------------------------------------------------------------------------- void Term( ) { #ifndef AK_OPTIMIZED Comm::Term(); #endif // AK_OPTIMIZED MusicEngine::Term(); SoundEngine::Term(); m_lowLevelIO.Term(); if ( IAkStreamMgr::Get() ) IAkStreamMgr::Get()->Destroy(); MemoryMgr::Term(); }
//----------------------------------------------------------------------------------------- // Sound Engine termination. //----------------------------------------------------------------------------------------- void Term( ) { if (!AK::SoundEngine::IsInitialized()) return; AK::SoundEngine::StopAll(); #ifndef AK_OPTIMIZED #ifndef AK_METRO AK::Comm::Term(); #endif // #ifndef AK_METRO #endif // AK_OPTIMIZED AK::MusicEngine::Term(); AK::SoundEngine::Term(); g_lowLevelIO.Term(); if ( AK::IAkStreamMgr::Get() ) AK::IAkStreamMgr::Get()->Destroy(); AK::MemoryMgr::Term(); }