From: Erik Hofman Date: Thu, 10 Nov 2011 11:52:17 +0000 (+0100) Subject: Also stop the source if it is paused when exit. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8727e609f016c9248e273e05d3b422d2560d67a1;p=simgear.git Also stop the source if it is paused when exit. --- 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 ); }