2 #include "soundscape.h"
9 SoundScape::~SoundScape()
11 for(list<Source *>::iterator i=sources.begin(); i!=sources.end(); ++i)
15 void SoundScape::add_source(Source &src)
17 sources.push_back(&src);
20 Source &SoundScape::play(const Buffer &buf, float x, float y, float z)
22 Source *src = new Source;
25 src->set_position(x, y, z);
30 void SoundScape::tick()
32 for(list<Source *>::iterator i=sources.begin(); i!=sources.end();)
34 if((*i)->get_state()==STOPPED)