Initializes ALUT (JOAL) in the static initializer to avoid freezing everything

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9895 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
jul..om 12 years ago
parent 03fe815bd2
commit e4d776ae0e
  1. 5
      engine/src/jogl/com/jme3/audio/joal/JoalAudioRenderer.java

@ -78,6 +78,10 @@ public class JoalAudioRenderer implements AudioRenderer, Runnable {
private ALC alc;
private AL al;
static {
ALut.alutInit();
}
public JoalAudioRenderer() {
}
@ -139,7 +143,6 @@ public class JoalAudioRenderer implements AudioRenderer, Runnable {
public void initInThread() {
try {
ALut.alutInit();
alc = ALFactory.getALC();
al = ALFactory.getAL();

Loading…
Cancel
Save