Преглед изворни кода

FINALLY THE AUDIO BUG HAS BEEN FIXED (fixes #5)

Bart van Strien пре 15 година
родитељ
комит
08c0a68784
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      src/modules/audio/openal/Source.cpp

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

@@ -277,6 +277,9 @@ namespace openal
 		alSourcef(source, AL_GAIN, volume);
 
 		alSourcePlay(source);
+
+		valid = true; //if it fails it will be set to false again
+		//but this prevents a horrible, horrible bug
 	}
 
 	void Source::stopAtomic()