From: Erik Hofman <erik@ehofman.com>
Date: Tue, 29 Jun 2010 06:28:38 +0000 (+0200)
Subject: At some points Flightgear stops and restarts the entire sample group containing the... 
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d671c3d9faf406ffa0b9c5bf77d46a47857f772a;p=simgear.git

At some points Flightgear stops and restarts the entire sample group containing the looping background/engine noise. But it does not restart the individual (looping) samples in the group. So now the background noise dies when resetting the sim or changing aircraft location.
---

diff --git a/simgear/sound/sample_group.cxx b/simgear/sound/sample_group.cxx
index bc7605ac..a4fbfc49 100644
--- a/simgear/sound/sample_group.cxx
+++ b/simgear/sound/sample_group.cxx
@@ -260,7 +260,6 @@ SGSampleGroup::stop ()
             if ( sample->is_playing() ) {
                 alSourceStop( source );
                 alSourcei( source, AL_BUFFER, 0 );
-                sample->stop();
             }
             _smgr->release_source( source );
             sample->no_valid_source();