Also stop the source if it is paused when exit.
This commit is contained in:
parent
40fc2907a1
commit
8727e609f0
@ -439,7 +439,7 @@ void SGSoundMgr::release_source( unsigned int source )
|
|||||||
ALint result;
|
ALint result;
|
||||||
|
|
||||||
alGetSourcei( source, AL_SOURCE_STATE, &result );
|
alGetSourcei( source, AL_SOURCE_STATE, &result );
|
||||||
if ( result == AL_PLAYING ) {
|
if ( result == AL_PLAYING || result == AL_PAUSED ) {
|
||||||
alSourceStop( source );
|
alSourceStop( source );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user