mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 06:53:53 +00:00
Treat paused sounds as still playing
This commit is contained in:
parent
2efdafecd9
commit
c2e1595445
1 changed files with 2 additions and 2 deletions
|
@ -254,7 +254,7 @@ bool OpenAL_SoundStream::isPlaying()
|
|||
alGetSourcei(mSource, AL_SOURCE_STATE, &state);
|
||||
throwALerror();
|
||||
|
||||
if(state == AL_PLAYING)
|
||||
if(state == AL_PLAYING || state == AL_PAUSED)
|
||||
return true;
|
||||
return !mIsFinished;
|
||||
}
|
||||
|
@ -393,7 +393,7 @@ bool OpenAL_Sound::isPlaying()
|
|||
alGetSourcei(mSource, AL_SOURCE_STATE, &state);
|
||||
throwALerror();
|
||||
|
||||
return state==AL_PLAYING;
|
||||
return state==AL_PLAYING || state==AL_PAUSED;
|
||||
}
|
||||
|
||||
void OpenAL_Sound::update()
|
||||
|
|
Loading…
Reference in a new issue