Unified Messaging Subsystem
[supertux.git] / src / audio / stream_sound_source.cpp
index 868b4bc..6918a16 100644 (file)
@@ -6,9 +6,10 @@
 #include "stream_sound_source.hpp"
 #include "sound_manager.hpp"
 #include "sound_file.hpp"
+#include "msg.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: ");
@@ -54,7 +55,7 @@ StreamSoundSource::update()
       return;
     
     // we might have to restart the source if we had a buffer underrun  
-    std::cerr << "Restarting audio source because of buffer underrun.\n";
+    msg_info("Restarting audio source because of buffer underrun");
     play();
   }