#include "sector.hpp"
#include "audio/sound_manager.hpp"
#include "audio/sound_source.hpp"
-#include "msg.hpp"
+#include "log.hpp"
AmbientSound::AmbientSound(const lisp::Lisp& lisp)
{
sample="";
if (!(lisp.get("x", position.x)&&lisp.get("y", position.y))) {
- msg_warning << "No Position in ambient_sound" << std::endl;
+ log_warning << "No Position in ambient_sound" << std::endl;
}
lisp.get("width" , dimension.x);
currentvolume=targetvolume=1e-20;
sound_source->play();
} catch(std::exception& e) {
- msg_warning << "Couldn't play '" << sample << "': " << e.what() << "" << std::endl;
+ log_warning << "Couldn't play '" << sample << "': " << e.what() << "" << std::endl;
delete sound_source;
sound_source = 0;
}