Browse Source

Apply patch that fixes "random" looping of streaming sources (issue #630)

Bart van Strien 12 years ago
parent
commit
5d2b20a662
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/modules/audio/openal/Source.cpp

+ 1 - 0
src/modules/audio/openal/Source.cpp

@@ -449,6 +449,7 @@ void Source::playAtomic()
 	alSourcef(source, AL_REFERENCE_DISTANCE, referenceDistance);
 	alSourcef(source, AL_ROLLOFF_FACTOR, rolloffFactor);
 	alSourcef(source, AL_MAX_DISTANCE, maxDistance);
+	alSourcei(source, AL_LOOPING, isLooping() ? AL_TRUE : AL_FALSE);
 
 	alSourcePlay(source);