mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
use openal-soft extensions to pause sounds and defer updates
This commit is contained in:
10
EU07.cpp
10
EU07.cpp
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user