mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Global initialization of sound using SoundManagerGlobal (#7063)
* Global initialization of sound using SoundManagerGlobal
This commit is contained in:
parent
9fcc0c1217
commit
9293d8e271
5 changed files with 116 additions and 84 deletions
|
@ -137,7 +137,7 @@ GUIEngine::GUIEngine(JoystickController *joystick,
|
|||
//create soundmanager
|
||||
MenuMusicFetcher soundfetcher;
|
||||
#if USE_SOUND
|
||||
m_sound_manager = createOpenALSoundManager(&soundfetcher);
|
||||
m_sound_manager = createOpenALSoundManager(g_sound_manager_singleton.get(), &soundfetcher);
|
||||
#endif
|
||||
if(!m_sound_manager)
|
||||
m_sound_manager = &dummySoundManager;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue