mirror of
https://github.com/minetest/minetest.git
synced 2024-12-24 15:12:23 +01:00
Guard sound manager initialization with "enable_sound" (#7167)
This commit is contained in:
parent
9802e59724
commit
b0fef16a27
@ -137,6 +137,7 @@ GUIEngine::GUIEngine(JoystickController *joystick,
|
||||
//create soundmanager
|
||||
MenuMusicFetcher soundfetcher;
|
||||
#if USE_SOUND
|
||||
if (g_settings->getBool("enable_sound"))
|
||||
m_sound_manager = createOpenALSoundManager(g_sound_manager_singleton.get(), &soundfetcher);
|
||||
#endif
|
||||
if(!m_sound_manager)
|
||||
|
Loading…
Reference in New Issue
Block a user