]> git.mxchange.org Git - simgear.git/commitdiff
No need to start non looping samples automatically when getting in-range.
authorErik Hofman <erik@ehofman.com>
Tue, 13 Dec 2011 10:40:08 +0000 (11:40 +0100)
committerErik Hofman <erik@ehofman.com>
Tue, 13 Dec 2011 10:40:08 +0000 (11:40 +0100)
simgear/sound/sample_openal.hxx

index a5ad521dc60fff46bba27f0ab67e6b78f03eef15..35aabab9afce766fe801ca9d3a27985825dd700a 100644 (file)
@@ -158,7 +158,7 @@ public:
      * Schedule this audio sample to stop (or start) playing.
      */
     inline void set_out_of_range(bool oor = true) {
-        _out_of_range = oor; _playing = oor ? false : true; _changed = true;
+        _out_of_range = oor; _playing = (!oor && _loop); _changed = true;
     }
 
     /**