diff options
author | PilzAdam <pilzadam@minetest.net> | 2013-05-18 13:01:47 +0200 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-05-18 13:01:47 +0200 |
commit | 714ecc5e27c2c01b0f3ce0ba626abb6baca9af13 (patch) | |
tree | 53a1a54b712a7764da86e22778262d0fb3f0646a | |
parent | 9397b5de083fabe2e93c55de5bf90e5c75bbe9c1 (diff) | |
download | minetest-714ecc5e27c2c01b0f3ce0ba626abb6baca9af13.tar.gz minetest-714ecc5e27c2c01b0f3ce0ba626abb6baca9af13.tar.bz2 minetest-714ecc5e27c2c01b0f3ce0ba626abb6baca9af13.zip |
Only create SoundManager in main menu if USE_SOUND is true
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |