#include <simgear/structure/exception.hxx>
#include "sample_openal.hxx"
+#include "sample_queue.hxx"
using std::map;
using std::string;
/**
* Destructor
*/
- ~SGSampleGroup ();
+ virtual ~SGSampleGroup ();
/**
* Set the status of this sample group to active.
*/
SGSoundSample *find( const string& refname );
+ /**
+ * Stop all playing samples and set the source id to invalid.
+ */
+ void stop();
+
/**
* Request to stop playing all audio samples until further notice.
*/
/**
* Request to stop playing the refered audio sample.
* @param refname Reference name of the audio sample to stop
- * @return true if the audio sample exsists and is scheduled to stop
+ * @return true if the audio sample exists and is scheduled to stop
*/
bool stop( const string& refname );