Browse Source

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

Bart van Strien 15 năm trước cách đây
mục cha
commit
08c0a68784
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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()