Prechádzať zdrojové kódy

Removed one assertion in AlAudioRenderer as it can't pass considering the current AudioNode implementation

Nehon 10 rokov pred
rodič
commit
7c5f994db8

+ 3 - 1
jme3-core/src/main/java/com/jme3/audio/openal/ALAudioRenderer.java

@@ -989,7 +989,9 @@ public class ALAudioRenderer implements AudioRenderer, Runnable {
             if (src.getStatus() == Status.Playing) {
                 return;
             } else if (src.getStatus() == Status.Stopped) {
-                assert src.getChannel() != -1;
+                //Assertion removed as it seems it's not possible to have 
+                //something different than =1 when first playing an AudioNode
+                // assert src.getChannel() != -1;
                 
                 // allocate channel to this source
                 int index = newChannel();