]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/sample_group.hxx
Patch to avoid the problem of the socket resource not yet being available
[simgear.git] / simgear / sound / sample_group.hxx
index c0b0fdc6b6c2f5a676ee988587f4095d11debd1e..59d42b323e8cacbea970ef1e0cb84790be4781d6 100644 (file)
@@ -52,6 +52,7 @@
 #include <simgear/structure/exception.hxx>
 
 #include "sample_openal.hxx"
+#include "sample_queue.hxx"
 
 using std::map;
 using std::string;
@@ -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.
      */