3 This file is part of libmspal
4 Copyright © 2008 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
9 #include "soundscape.h"
16 SoundScape::~SoundScape()
18 for(list<Source *>::iterator i=sources.begin(); i!=sources.end(); ++i)
22 void SoundScape::add_source(Source &src)
24 sources.push_back(&src);
27 Source &SoundScape::play(const Buffer &buf, float x, float y, float z)
29 Source *src=new Source;
32 src->set_position(x, y, z);
37 void SoundScape::tick()
39 for(list<Source *>::iterator i=sources.begin(); i!=sources.end();)
41 if((*i)->get_state()==STOPPED)