mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 08:30:49 +00:00
Don't purge sources in an initial state
This commit is contained in:
parent
fb07f7ef07
commit
ef7ce41d07
1 changed files with 2 additions and 2 deletions
|
@ -1685,9 +1685,9 @@ void OpenALSoundRenderer::PurgeStoppedSources()
|
||||||
// Release channels that are stopped
|
// Release channels that are stopped
|
||||||
foreach(ALuint, i, SfxGroup)
|
foreach(ALuint, i, SfxGroup)
|
||||||
{
|
{
|
||||||
ALint state = AL_PLAYING;
|
ALint state = AL_INITIAL;
|
||||||
alGetSourcei(*i, AL_SOURCE_STATE, &state);
|
alGetSourcei(*i, AL_SOURCE_STATE, &state);
|
||||||
if(state == AL_PLAYING || state == AL_PAUSED)
|
if(state == AL_INITIAL || state == AL_PLAYING || state == AL_PAUSED)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
FSoundChan *schan = Channels;
|
FSoundChan *schan = Channels;
|
||||||
|
|
Loading…
Reference in a new issue