X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fsound%2Fsample_group.hxx;h=ccf1e85db1f4ede870f4d48ef6b553f63cd9b9c9;hb=bcb320b537b6f7e5e3724e8a30d309322171eb43;hp=c0b0fdc6b6c2f5a676ee988587f4095d11debd1e;hpb=5b2af1f6b353078e0662453bb74bc7d80dc31a6b;p=simgear.git diff --git a/simgear/sound/sample_group.hxx b/simgear/sound/sample_group.hxx index c0b0fdc6..ccf1e85d 100644 --- a/simgear/sound/sample_group.hxx +++ b/simgear/sound/sample_group.hxx @@ -52,6 +52,7 @@ #include #include "sample_openal.hxx" +#include "sample_queue.hxx" using std::map; using std::string; @@ -84,7 +85,7 @@ public: /** * Destructor */ - ~SGSampleGroup (); + virtual ~SGSampleGroup (); /** * Set the status of this sample group to active. @@ -128,6 +129,11 @@ public: */ 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. */