Fix looping sounds under OpenAL

scancodes-fix
Sven Eberhardt 2013-04-09 22:31:02 +02:00
parent 09a6349060
commit 451f11bd37
1 changed files with 1 additions and 0 deletions

View File

@ -283,6 +283,7 @@ bool C4SoundInstance::Start()
Application.MusicSystem.SelectContext();
alGenSources(1, (ALuint*)&iChannel);
alSourcei(iChannel, AL_BUFFER, pEffect->pSample);
alSourcei(iChannel, AL_LOOPING, fLooping ? AL_TRUE : AL_FALSE);
alSourcePlay(iChannel);
#else
return false;