]> git.mxchange.org Git - simgear.git/commitdiff
#329: fix issue with mismatching sound volume
authorThorstenB <brehmt@gmail.com>
Sat, 27 Aug 2011 10:00:17 +0000 (12:00 +0200)
committerThorstenB <brehmt@gmail.com>
Sat, 27 Aug 2011 10:00:17 +0000 (12:00 +0200)
Sounds played after changing view position sometimes had incorrect volume

simgear/sound/sample_openal.hxx

index b2afba4f33fd1da89f138e491b038e115d0625dc..b5267bb10ca1963d8ddcf2e4bf8e759168f79326 100644 (file)
@@ -118,7 +118,7 @@ public:
      * @param _loop Define whether this sound should be played in a loop.
      */
     void play( bool loop = false ) {
-        _playing = true; _loop = loop; _changed = true;
+        _playing = true; _loop = loop; _changed = true; _static_changed = true;
     }
 
     /**