If reverb was enabled then the effect channel association

needs to be cleared, regardless of whether there was a 
filter or not.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7482 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
PSp..om 14 years ago
parent aa2c4333f4
commit 9489d43098
  1. 2
      engine/src/lwjgl-oal/com/jme3/audio/lwjgl/LwjglAudioRenderer.java

@ -692,7 +692,7 @@ public class LwjglAudioRenderer implements AudioRenderer, Runnable {
}
if (src.isPositional()){
AudioNode pas = (AudioNode) src;
if (pas.getReverbFilter() != null){
if (pas.isReverbEnabled()) {
AL11.alSource3i(sourceId, EFX10.AL_AUXILIARY_SEND_FILTER, 0, 0, EFX10.AL_FILTER_NULL);
}
}

Loading…
Cancel
Save