another uninitialized var
authorMatthias Braun <matze@braunis.de>
Mon, 23 Jan 2006 22:49:42 +0000 (22:49 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 23 Jan 2006 22:49:42 +0000 (22:49 +0000)
SVN-Revision: 3036

src/audio/sound_manager.cpp
src/audio/stream_sound_source.cpp

index aa52e28..a671c8c 100644 (file)
@@ -189,6 +189,7 @@ SoundManager::play_music(const std::string& filename, bool fade)
     std::auto_ptr<StreamSoundSource> 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();
index 868b4bc..3a10e6c 100644 (file)
@@ -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: ");