Also stop the source if it is paused when exit.

This commit is contained in:
Erik Hofman 2011-11-10 12:52:17 +01:00
parent 40fc2907a1
commit 8727e609f0

View 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 );
}