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,7 +137,8 @@ GUIEngine::GUIEngine(JoystickController *joystick,
|
|||||||
//create soundmanager
|
//create soundmanager
|
||||||
MenuMusicFetcher soundfetcher;
|
MenuMusicFetcher soundfetcher;
|
||||||
#if USE_SOUND
|
#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
|
#endif
|
||||||
if(!m_sound_manager)
|
if(!m_sound_manager)
|
||||||
m_sound_manager = &dummySoundManager;
|
m_sound_manager = &dummySoundManager;
|
||||||
|
Loading…
Reference in New Issue
Block a user