New Path based on time intervals; see levels/test/platform.stl
[supertux.git] / src / object / ambient_sound.cpp
index 68253b0..3b8093e 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <math.h>
 #include <stdexcept>
+#include <iostream>
 
 #include "ambient_sound.hpp"
 #include "object_factory.hpp"
@@ -121,10 +122,7 @@ void
 AmbientSound::start_playing()
 {
   try {
-    std::string filename = "sounds/";
-    filename += sample;
-    filename += ".wav";
-    sound_source = sound_manager->create_sound_source(filename);
+    sound_source = sound_manager->create_sound_source(sample);
     if(!sound_source)
       throw std::runtime_error("file not found");