From: Matthias Braun Date: Mon, 23 Jan 2006 22:49:42 +0000 (+0000) Subject: another uninitialized var X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=476cd54ccb352ba9219a9f23eee12b9b892ea84c;p=supertux.git another uninitialized var SVN-Revision: 3036 --- diff --git a/src/audio/sound_manager.cpp b/src/audio/sound_manager.cpp index aa52e289b..a671c8c3e 100644 --- a/src/audio/sound_manager.cpp +++ b/src/audio/sound_manager.cpp @@ -189,6 +189,7 @@ SoundManager::play_music(const std::string& filename, bool fade) std::auto_ptr newmusic (new StreamSoundSource()); alSourcef(newmusic->source, AL_ROLLOFF_FACTOR, 0); newmusic->set_sound_file(load_sound_file(filename)); + newmusic->set_looping(true); if(fade) newmusic->set_fading(StreamSoundSource::FadingOn, .5f); newmusic->play(); diff --git a/src/audio/stream_sound_source.cpp b/src/audio/stream_sound_source.cpp index 868b4bce2..3a10e6c59 100644 --- a/src/audio/stream_sound_source.cpp +++ b/src/audio/stream_sound_source.cpp @@ -8,7 +8,7 @@ #include "sound_file.hpp" StreamSoundSource::StreamSoundSource() - : file(0), fade_state(NoFading) + : file(0), fade_state(NoFading), looping(false) { alGenBuffers(STREAMFRAGMENTS, buffers); SoundManager::check_al_error("Couldn't allocate audio buffers: ");