#include <math.h>
#include <stdexcept>
-#include "ambient_sound.h"
-#include "object_factory.h"
-#include "lisp/lisp.h"
-#include "sector.h"
-#include "audio/sound_manager.h"
-#include "audio/sound_source.h"
+#include "ambient_sound.hpp"
+#include "object_factory.hpp"
+#include "lisp/lisp.hpp"
+#include "sector.hpp"
+#include "audio/sound_manager.hpp"
+#include "audio/sound_source.hpp"
AmbientSound::AmbientSound(const lisp::Lisp& lisp)
{
try {
std::string filename = "sounds/";
filename += sample;
- filename += ".wav";
+ filename += ".ogg";
sound_source = sound_manager->create_sound_source(filename);
if(!sound_source)
throw std::runtime_error("file not found");