use of com.jme3.audio.openal.ALAudioRenderer in project jmonkeyengine by jMonkeyEngine.
the class JmeDesktopSystem method newAudioRenderer.
@Override
public AudioRenderer newAudioRenderer(AppSettings settings) {
initialize(settings);
AL al;
ALC alc;
EFX efx;
if (settings.getAudioRenderer().startsWith("LWJGL")) {
al = newObject("com.jme3.audio.lwjgl.LwjglAL");
alc = newObject("com.jme3.audio.lwjgl.LwjglALC");
efx = newObject("com.jme3.audio.lwjgl.LwjglEFX");
} else if (settings.getAudioRenderer().startsWith("JOAL")) {
al = newObject("com.jme3.audio.joal.JoalAL");
alc = newObject("com.jme3.audio.joal.JoalALC");
efx = newObject("com.jme3.audio.joal.JoalEFX");
} else {
throw new UnsupportedOperationException("Unrecognizable audio renderer specified: " + settings.getAudioRenderer());
}
if (al == null || alc == null || efx == null) {
return null;
}
return new ALAudioRenderer(al, alc, efx);
}
use of com.jme3.audio.openal.ALAudioRenderer in project jmonkeyengine by jMonkeyEngine.
the class JmeAndroidSystem method newAudioRenderer.
@Override
public AudioRenderer newAudioRenderer(AppSettings settings) {
ALC alc = new AndroidALC();
AL al = new AndroidAL();
EFX efx = new AndroidEFX();
return new ALAudioRenderer(al, alc, efx);
}
use of com.jme3.audio.openal.ALAudioRenderer in project jmonkeyengine by jMonkeyEngine.
the class JmeIosSystem method newAudioRenderer.
@Override
public AudioRenderer newAudioRenderer(AppSettings settings) {
ALC alc = new IosALC();
AL al = new IosAL();
//EFX efx = new IosEFX();
return new ALAudioRenderer(al, alc, null);
}
Aggregations