File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -311,6 +311,7 @@ void FileData::launchGame(Window* window)
311311 window->init ();
312312 InputManager::getInstance ()->init ();
313313 VolumeControl::getInstance ()->init ();
314+ AudioManager::getInstance ()->init ();
314315 window->normalizeNextUpdate ();
315316
316317 // update number of times the game has been launched
Original file line number Diff line number Diff line change 1717#include " Settings.h"
1818#include " SystemData.h"
1919#include " SystemScreenSaver.h"
20+ #include " AudioManager.h"
2021#include < SDL_events.h>
2122#include < SDL_main.h>
2223#include < SDL_timer.h>
@@ -395,6 +396,7 @@ int main(int argc, char* argv[])
395396 window.renderLoadingScreen (" Done." );
396397
397398 InputManager::getInstance ()->init ();
399+ AudioManager::getInstance ()->init ();
398400
399401 // choose which GUI to open depending on if an input configuration already exists
400402 if (errorMsg == NULL )
@@ -467,6 +469,7 @@ int main(int argc, char* argv[])
467469 while (window.peekGui () != ViewController::get ())
468470 delete window.peekGui ();
469471
472+ AudioManager::getInstance ()->deinit ();
470473 InputManager::getInstance ()->deinit ();
471474 window.deinit ();
472475
You can’t perform that action at this time.
0 commit comments