From b0fef16a27b0ec28b6d3a9e9e617da173dc795af Mon Sep 17 00:00:00 2001 From: nOOb3167 Date: Mon, 26 Mar 2018 17:44:40 +0200 Subject: Guard sound manager initialization with "enable_sound" (#7167) --- src/gui/guiEngine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gui/guiEngine.cpp b/src/gui/guiEngine.cpp index 7654bf7b3..3a41df9a5 100644 --- a/src/gui/guiEngine.cpp +++ b/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; -- cgit v1.2.3