Skip to content

Commit

Permalink
Load audio earlier in the process. Might save us some time
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Mar 16, 2015
1 parent 4344af0 commit c0e497c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/supertux/main.cpp
Expand Up @@ -299,6 +299,11 @@ Main::launch_game()
SDLSubsystem sdl_subsystem;
ConsoleBuffer console_buffer;

timelog("audio");
SoundManager sound_manager;
sound_manager.enable_sound(g_config->sound_enabled);
sound_manager.enable_music(g_config->music_enabled);

timelog("controller");
InputManager input_manager(g_config->keyboard_config, g_config->joystick_config);

Expand All @@ -309,11 +314,6 @@ Main::launch_game()
DrawingContext context(*video_system);
init_video();

timelog("audio");
SoundManager sound_manager;
sound_manager.enable_sound(g_config->sound_enabled);
sound_manager.enable_music(g_config->music_enabled);

Console console(console_buffer);

timelog("scripting");
Expand Down

0 comments on commit c0e497c

Please sign in to comment.