use openal-soft extensions to pause sounds and defer updates

This commit is contained in:
milek7
2017-08-25 22:02:31 +02:00
parent 9d91b19841
commit 83c0f4b8e2
4 changed files with 76 additions and 35 deletions

View File

@@ -41,6 +41,7 @@ Stele, firleju, szociu, hunter, ZiomalCl, OLI_EU and others
#pragma comment (lib, "dbghelp.lib")
#pragma comment (lib, "version.lib")
std::unique_ptr<sound_manager> sound_man;
TWorld World;
namespace input {
@@ -346,11 +347,7 @@ int main(int argc, char *argv[])
|| (false == UILayer.init(window)))
return -1;
if (!(sound_man = new sound_manager()))
{
ErrorLog("Sound subsystem setup failed");
return -1;
}
sound_man = std::make_unique<sound_manager>();
input::Keyboard.init();
input::Mouse.init();
@@ -415,9 +412,6 @@ int main(int argc, char *argv[])
#endif
}
//m7todo: restore
//delete sound_man;
TPythonInterpreter::killInstance();
#ifdef _WIN32
delete pConsole;