From: ThorstenB <brehmt@gmail.com>
Date: Sat, 27 Aug 2011 10:00:17 +0000 (+0200)
Subject: #329: fix issue with mismatching sound volume
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=40e177a02ef6c2c88d8587ea7343f2f71bb15f2f;p=simgear.git

#329: fix issue with mismatching sound volume
Sounds played after changing view position sometimes had incorrect volume
---

diff --git a/simgear/sound/sample_openal.hxx b/simgear/sound/sample_openal.hxx
index b2afba4f..b5267bb1 100644
--- a/simgear/sound/sample_openal.hxx
+++ b/simgear/sound/sample_openal.hxx
@@ -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;
     }
 
     /**