mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Only create SoundManager in main menu if USE_SOUND is true
This commit is contained in:
parent
9397b5de08
commit
714ecc5e27
1 changed files with 2 additions and 0 deletions
|
@ -1845,7 +1845,9 @@ int main(int argc, char *argv[])
|
|||
|
||||
MenuMusicFetcher soundfetcher;
|
||||
ISoundManager *sound = NULL;
|
||||
#if USE_SOUND
|
||||
sound = createOpenALSoundManager(&soundfetcher);
|
||||
#endif
|
||||
if(!sound)
|
||||
sound = &dummySoundManager;
|
||||
SimpleSoundSpec spec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue