diff --git a/source/src/sound.cpp b/source/src/sound.cpp index 4849f758..04c73d97 100644 --- a/source/src/sound.cpp +++ b/source/src/sound.cpp @@ -7,7 +7,7 @@ //#endif VARP(soundvol, 0, 255, 255); -bool nosound = false; +bool nosound = true; #define MAXCHAN 32 #define SOUNDFREQ 22050 @@ -74,7 +74,7 @@ void initsound() if(Mix_OpenAudio(SOUNDFREQ, MIX_DEFAULT_FORMAT, 2, soundbufferlen)<0) { conoutf("sound init failed (SDL_mixer): %s", (size_t)Mix_GetError()); - nosound = true; + return; }; Mix_AllocateChannels(MAXCHAN); #else @@ -82,9 +82,10 @@ void initsound() if(!FSOUND_Init(SOUNDFREQ, MAXCHAN, FSOUND_INIT_GLOBALFOCUS)) { conoutf("sound init failed (FMOD): %d", FSOUND_GetError()); - nosound = true; + return; }; #endif + nosound = false; }; void music(char *name)