From: Matthias Braun Date: Thu, 25 May 2006 10:17:26 +0000 (+0000) Subject: fix supertux blocking when no sound is available (I really still think we should... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b48fc0644b8b38ff9c98a2d8ab940ecaa960940a;p=supertux.git fix supertux blocking when no sound is available (I really still think we should abort the game instead of introducing more codepaths that are poorly tested...) SVN-Revision: 3575 --- diff --git a/src/audio/sound_manager.cpp b/src/audio/sound_manager.cpp index fd1be4f6f..6905621fa 100644 --- a/src/audio/sound_manager.cpp +++ b/src/audio/sound_manager.cpp @@ -35,7 +35,7 @@ SoundManager* sound_manager = 0; SoundManager::SoundManager() : device(0), context(0), sound_enabled(false), music_source(0), - music_enabled(true) + music_enabled(false) { try { device = alcOpenDevice(0); @@ -51,6 +51,7 @@ SoundManager::SoundManager() check_al_error("Audio error after init: "); sound_enabled = true; + music_enabled = true; } catch(std::exception& e) { if(context != NULL) alcDestroyContext(context);