Author: muggenhor
Date: Mon Mar 19 22:25:19 2007
New Revision: 913
URL: http://svn.gna.org/viewcvs/warzone?rev=913&view=rev
Log:
* Add sound_PlayTrack which will create a soundSource from a soundBuffer and
immediately start playing it
* Add sample management code to ensure that soundSource's have the proper
lifetime:
* sound_PlayTrack adds the soundSource's to a linked list (i.e.
std::list<soundSource>)
* sound_Update then checks whether the sample has finished playing yet
(getState() == stopped) and if so removes it from the list.
Modified:
branches/sound/lib/sound/interface.cpp
branches/sound/lib/sound/sound.h
_______________________________________________
Warzone-commits mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-commits