Also stop the source if it is paused when exit.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user