From: PilzAdam Date: Sat, 18 May 2013 11:01:47 +0000 (+0200) Subject: Only create SoundManager in main menu if USE_SOUND is true X-Git-Tag: 0.4.7~14^2~34 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=714ecc5e27c2c01b0f3ce0ba626abb6baca9af13;p=oweals%2Fminetest.git Only create SoundManager in main menu if USE_SOUND is true --- diff --git a/src/main.cpp b/src/main.cpp index d28ba9b9d..e5c8a55d3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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;