Skip to content
Permalink
Browse files

Guard sound manager initialization with "enable_sound" (#7167)

  • Loading branch information
nOOb3167 authored and SmallJoker committed Mar 26, 2018
1 parent 9802e59 commit b0fef16a27b0ec28b6d3a9e9e617da173dc795af
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/gui/guiEngine.cpp
@@ -137,7 +137,8 @@ GUIEngine::GUIEngine(JoystickController *joystick,
//create soundmanager
MenuMusicFetcher soundfetcher;
#if USE_SOUND
m_sound_manager = createOpenALSoundManager(g_sound_manager_singleton.get(), &soundfetcher);
if (g_settings->getBool("enable_sound"))
m_sound_manager = createOpenALSoundManager(g_sound_manager_singleton.get(), &soundfetcher);
#endif
if(!m_sound_manager)
m_sound_manager = &dummySoundManager;

0 comments on commit b0fef16

Please sign in to comment.