]> git.mxchange.org Git - flightgear.git/blobdiff - src/Sound/soundmgr.hxx
Bernie Bright:
[flightgear.git] / src / Sound / soundmgr.hxx
index 8a54ee457822a20eb3d7e7df73160f6e237190e9..fbab39fc469ad74194eb000ee7a0d497c8173c5e 100644 (file)
@@ -70,7 +70,9 @@ public:
 
     inline void play_once( slScheduler *sched ) { play( sched, false); }
     inline void play_looped( slScheduler *sched ) { play( sched, true); }
-    inline bool is_playing( ) { return (requests > 0 ); }
+    inline bool is_playing( ) {
+        return ( sample->getPlayCount() > 0 );
+    }
 
     inline double get_pitch() const { return pitch; }
     inline void set_pitch( double p ) {
@@ -146,6 +148,18 @@ public:
     void update(int dt);
 
 
+    /**
+     * Pause all sounds.
+     */
+    void pause ();
+
+
+    /**
+     * Resume all sounds.
+     */
+    void resume ();
+
+
     // is audio working?
     inline bool is_working() const { return !audio_sched->notWorking(); }