1
0
Fork 0
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:
Chris Robinson 2012-12-11 21:01:32 -08:00
parent 2efdafecd9
commit c2e1595445

View file

@ -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()