Search in sources :

Example 1 with ALAudioRenderer

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);
}
Also used : EFX(com.jme3.audio.openal.EFX) ALC(com.jme3.audio.openal.ALC) AL(com.jme3.audio.openal.AL) ALAudioRenderer(com.jme3.audio.openal.ALAudioRenderer)

Example 2 with ALAudioRenderer

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);
}
Also used : AndroidALC(com.jme3.audio.android.AndroidALC) AndroidEFX(com.jme3.audio.android.AndroidEFX) AndroidEFX(com.jme3.audio.android.AndroidEFX) EFX(com.jme3.audio.openal.EFX) ALC(com.jme3.audio.openal.ALC) AndroidALC(com.jme3.audio.android.AndroidALC) AL(com.jme3.audio.openal.AL) AndroidAL(com.jme3.audio.android.AndroidAL) AndroidAL(com.jme3.audio.android.AndroidAL) ALAudioRenderer(com.jme3.audio.openal.ALAudioRenderer)

Example 3 with ALAudioRenderer

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);
}
Also used : IosAL(com.jme3.audio.ios.IosAL) ALC(com.jme3.audio.openal.ALC) IosALC(com.jme3.audio.ios.IosALC) IosALC(com.jme3.audio.ios.IosALC) AL(com.jme3.audio.openal.AL) IosAL(com.jme3.audio.ios.IosAL) ALAudioRenderer(com.jme3.audio.openal.ALAudioRenderer)

Aggregations

AL (com.jme3.audio.openal.AL)3 ALAudioRenderer (com.jme3.audio.openal.ALAudioRenderer)3 ALC (com.jme3.audio.openal.ALC)3 EFX (com.jme3.audio.openal.EFX)2 AndroidAL (com.jme3.audio.android.AndroidAL)1 AndroidALC (com.jme3.audio.android.AndroidALC)1 AndroidEFX (com.jme3.audio.android.AndroidEFX)1 IosAL (com.jme3.audio.ios.IosAL)1 IosALC (com.jme3.audio.ios.IosALC)1