소스 검색

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

Nehon 10 년 전
부모
커밋
7c5f994db8
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      jme3-core/src/main/java/com/jme3/audio/openal/ALAudioRenderer.java

+ 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();