From 38e61e3a952b066b9931d8adbf8d4c26c7b4ccee Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Tue, 7 Nov 2006 21:59:36 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@532 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/sound.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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)