From 8727e609f016c9248e273e05d3b422d2560d67a1 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Thu, 10 Nov 2011 12:52:17 +0100 Subject: [PATCH] Also stop the source if it is paused when exit. --- simgear/sound/soundmgr_openal.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/sound/soundmgr_openal.cxx b/simgear/sound/soundmgr_openal.cxx index 97a1f05c..0e34717b 100644 --- a/simgear/sound/soundmgr_openal.cxx +++ b/simgear/sound/soundmgr_openal.cxx @@ -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 ); } -- 2.39.5