Only create SoundManager in main menu if USE_SOUND is true
parent
9397b5de08
commit
714ecc5e27
|
@ -1845,7 +1845,9 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
MenuMusicFetcher soundfetcher;
|
MenuMusicFetcher soundfetcher;
|
||||||
ISoundManager *sound = NULL;
|
ISoundManager *sound = NULL;
|
||||||
|
#if USE_SOUND
|
||||||
sound = createOpenALSoundManager(&soundfetcher);
|
sound = createOpenALSoundManager(&soundfetcher);
|
||||||
|
#endif
|
||||||
if(!sound)
|
if(!sound)
|
||||||
sound = &dummySoundManager;
|
sound = &dummySoundManager;
|
||||||
SimpleSoundSpec spec;
|
SimpleSoundSpec spec;
|
||||||
|
|
Loading…
Reference in New Issue