-/* $Id$
-
-This file is part of libmspal
-Copyright © 2008 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include "source.h"
#include "soundscape.h"
Source &SoundScape::play(const Buffer &buf, float x, float y, float z)
{
- Source *src=new Source;
+ Source *src = new Source;
add_source(*src);
src->set_buffer(buf);
src->set_position(x, y, z);
if((*i)->get_state()==STOPPED)
{
delete *i;
- i=sources.erase(i);
+ i = sources.erase(i);
}
else
++i;