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.

This commit is contained in:
Erik Hofman
2010-06-29 08:28:38 +02:00
parent 7086f2dc89
commit d671c3d9fa

View File

@@ -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();