]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/sample_openal.hxx
Make tsync part of libSimGearCore when building shared libraries
[simgear.git] / simgear / sound / sample_openal.hxx
index a5ad521dc60fff46bba27f0ab67e6b78f03eef15..a231f6633a6dc3afe91c9a08f6a393026e031d4c 100644 (file)
@@ -85,7 +85,7 @@ public:
     virtual ~SGSoundSample ();
 
     /**
-     * Detect wheter this audio sample holds the information of a sound file.
+     * Detect whether this audio sample holds the information of a sound file.
      * @return Return true if this audio sample is to be constructed from a file.
      */
     inline bool is_file() const { return _is_file; }
@@ -103,7 +103,7 @@ public:
     }
 
     /**
-     * Test if static dataa of audio sample configuration has changed.
+     * Test if static data of audio sample configuration has changed.
      * Calling this function will reset the flag so calling it a second
      * time in a row will return false.
      * @return Return true is the static data has changed in the mean time.
@@ -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;
     }
 
     /**