#include <math.h>
#include <stdexcept>
+#include <iostream>
#include "ambient_sound.hpp"
#include "object_factory.hpp"
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");