X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsoundscape.cpp;h=e12f39befacded7c6fe2809100e012e5e91e77dc;hb=14008b157c64752ba7c1cef831124992c35c4646;hp=d36b3bf7c1648c236fa3fde5c0890a9e707b0268;hpb=58dc1e7c15f928d0f861a20c46f2be4112bf5baf;p=libs%2Fal.git diff --git a/source/soundscape.cpp b/source/soundscape.cpp index d36b3bf..e12f39b 100644 --- a/source/soundscape.cpp +++ b/source/soundscape.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspal -Copyright © 2008 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include "source.h" #include "soundscape.h" @@ -26,7 +19,7 @@ void SoundScape::add_source(Source &src) 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); @@ -41,7 +34,7 @@ void SoundScape::tick() if((*i)->get_state()==STOPPED) { delete *i; - i=sources.erase(i); + i = sources.erase(i); } else ++i;