diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client/snd_openal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/snd_openal.c b/src/client/snd_openal.c index fa18f2dc..403d013c 100644 --- a/src/client/snd_openal.c +++ b/src/client/snd_openal.c @@ -1536,6 +1536,10 @@ void S_AL_SrcUpdate( void ) if(!curSource->isPlaying) { + qalSourcei(curSource->alSource, AL_LOOPING, AL_TRUE); + curSource->isPlaying = qtrue; + qalSourcePlay(curSource->alSource); + if(curSource->priority == SRCPRI_AMBIENT) { // If there are other ambient looping sources with the same sound, @@ -1593,10 +1597,6 @@ void S_AL_SrcUpdate( void ) } curSfx->loopActiveCnt++; - - qalSourcei(curSource->alSource, AL_LOOPING, AL_TRUE); - curSource->isPlaying = qtrue; - qalSourcePlay(curSource->alSource); } // Update locality |