]> git.mxchange.org Git - simgear.git/commitdiff
Also stop the source if it is paused when exit.
authorErik Hofman <erik@ehofman.com>
Thu, 10 Nov 2011 11:52:17 +0000 (12:52 +0100)
committerErik Hofman <erik@ehofman.com>
Thu, 10 Nov 2011 11:52:17 +0000 (12:52 +0100)
simgear/sound/soundmgr_openal.cxx

index 97a1f05c4ff6e9c42606b9911f1a424b7721e0aa..0e34717b3d67f27316b29c14feb50a70d81dc357 100644 (file)
@@ -439,7 +439,7 @@ void SGSoundMgr::release_source( unsigned int source )
         ALint result;
 
         alGetSourcei( source, AL_SOURCE_STATE, &result );
-        if ( result == AL_PLAYING ) {
+        if ( result == AL_PLAYING || result == AL_PAUSED ) {
             alSourceStop( source );
         }