From b48fc0644b8b38ff9c98a2d8ab940ecaa960940a Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 25 May 2006 10:17:26 +0000 Subject: [PATCH] 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 --- src/audio/sound_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.11.0