#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: ");
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();
}