Browse Source

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

Bart van Strien 15 years ago
parent
commit
08c0a68784
1 changed files with 3 additions and 0 deletions
  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);
 		alSourcef(source, AL_GAIN, volume);
 
 
 		alSourcePlay(source);
 		alSourcePlay(source);
+
+		valid = true; //if it fails it will be set to false again
+		//but this prevents a horrible, horrible bug
 	}
 	}
 
 
 	void Source::stopAtomic()
 	void Source::stopAtomic()