mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 18:45:33 +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);
|
alGetSourcei(mSource, AL_SOURCE_STATE, &state);
|
||||||
throwALerror();
|
throwALerror();
|
||||||
|
|
||||||
if(state == AL_PLAYING)
|
if(state == AL_PLAYING || state == AL_PAUSED)
|
||||||
return true;
|
return true;
|
||||||
return !mIsFinished;
|
return !mIsFinished;
|
||||||
}
|
}
|
||||||
|
@ -393,7 +393,7 @@ bool OpenAL_Sound::isPlaying()
|
||||||
alGetSourcei(mSource, AL_SOURCE_STATE, &state);
|
alGetSourcei(mSource, AL_SOURCE_STATE, &state);
|
||||||
throwALerror();
|
throwALerror();
|
||||||
|
|
||||||
return state==AL_PLAYING;
|
return state==AL_PLAYING || state==AL_PAUSED;
|
||||||
}
|
}
|
||||||
|
|
||||||
void OpenAL_Sound::update()
|
void OpenAL_Sound::update()
|
||||||
|
|
Loading…
Reference in a new issue