mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-26 05:15:27 +01:00
Global initialization of sound using SoundManagerGlobal (#7063)
* Global initialization of sound using SoundManagerGlobal
This commit is contained in:
@@ -1219,7 +1219,7 @@ bool Game::initSound()
|
||||
#if USE_SOUND
|
||||
if (g_settings->getBool("enable_sound")) {
|
||||
infostream << "Attempting to use OpenAL audio" << std::endl;
|
||||
sound = createOpenALSoundManager(&soundfetcher);
|
||||
sound = createOpenALSoundManager(g_sound_manager_singleton.get(), &soundfetcher);
|
||||
if (!sound)
|
||||
infostream << "Failed to initialize OpenAL audio" << std::endl;
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user