From d671c3d9faf406ffa0b9c5bf77d46a47857f772a Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Tue, 29 Jun 2010 08:28:38 +0200 Subject: [PATCH] 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. --- simgear/sound/sample_group.cxx | 1 - 1 file changed, 1 deletion(-) 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(); -- 2.39.5