first very unfinished and unpolished version of the intro
[supertux.git] / src / object / ambient_sound.cpp
index 61af1aa..21ad67f 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <math.h>
 #include <stdexcept>
+#include <iostream>
 
 #include "ambient_sound.hpp"
 #include "object_factory.hpp"
@@ -123,7 +124,7 @@ AmbientSound::start_playing()
   try {
     std::string filename = "sounds/";
     filename += sample;
-    filename += ".ogg";
+    filename += ".wav";
     sound_source = sound_manager->create_sound_source(filename);
     if(!sound_source)
       throw std::runtime_error("file not found");