@@ -30,7 +30,7 @@ int CSoundManager::GetGameSounds(FS_FileSet& files)
3030int CSoundManager::GetSoundEnvs (AStringVec& items)
3131{
3232 /*
33- SoundEnvironment_LIB* Lib = Sound->get_env_library();
33+ SoundEnvironment_LIB* Lib = GEnv. Sound->get_env_library();
3434 if (Lib){
3535 for (SoundEnvironment_LIB::SE_IT it=Lib->Library().begin(); it!=Lib->Library().end(); it++)
3636 items.push_back(*(*it)->name);
@@ -44,16 +44,15 @@ bool CSoundManager::OnCreate()
4444{
4545 // . psSoundFreq = sf_44K;
4646 // psSoundFlags.set (ssHardware,FALSE);
47- CSound_manager_interface::_create (0 );
48- CSound_manager_interface::_create (1 );
47+ ISoundManager::_create ();
4948 return true ;
5049}
5150
52- void CSoundManager::OnDestroy () { CSound_manager_interface ::_destroy (); }
51+ void CSoundManager::OnDestroy () { ISoundManager ::_destroy (); }
5352void CSoundManager::OnFrame ()
5453{
5554 ::psSoundVEffects = psDeviceFlags.is (rsMuteSounds) ? 0 .f : 1 .f ;
56- Sound->update (EDevice.m_Camera .GetPosition (), EDevice.m_Camera .GetDirection (), EDevice.m_Camera .GetNormal ());
55+ GEnv. Sound ->update (EDevice.m_Camera .GetPosition (), EDevice.m_Camera .GetDirection (), EDevice.m_Camera .GetNormal ());
5756}
5857
5958void CSoundManager::MuteSounds (BOOL bVal)
@@ -95,7 +94,7 @@ void CSoundManager::RenameSound(LPCSTR nm0, LPCSTR nm1, EItemType type)
9594 strcat (fn1, " .ogg" );
9695 FS.file_rename (fn0, fn1, false );
9796
98- Sound->refresh_sources ();
97+ GEnv. Sound ->refresh_sources ();
9998 }
10099}
101100
@@ -121,7 +120,7 @@ BOOL CSoundManager::RemoveSound(LPCSTR fname, EItemType type)
121120 FS.file_delete (_sounds_, thm_name.c_str ());
122121 // game
123122 FS.file_delete (_game_sounds_, game_name.c_str ());
124- Sound->refresh_sources ();
123+ GEnv. Sound ->refresh_sources ();
125124 return TRUE ;
126125 }
127126 }
@@ -436,7 +435,7 @@ void CSoundManager::RefreshSounds(bool bSync)
436435 SynchronizeSounds (true , true , false , 0 , 0 );
437436 CleanupSounds ();
438437 }
439- Sound->refresh_sources ();
438+ GEnv. Sound ->refresh_sources ();
440439 UI->SetStatus (" " );
441440 }
442441 else
0 commit comments