* Unified all renderers into common class 'ALAudioRenderer' * LWJGL and Android now implement the AL / ALC / EFX interfaces to provide a common OpenAL backend for jME * Added support for OpenAL Soft "Pause Device" extension, which allows the engine to pause the context while running in the background (currently requires OpenAL soft 1.16 and thus is Android only feature)
31 lines
672 B
Java
31 lines
672 B
Java
package com.jme3.audio.android;
|
|
|
|
import com.jme3.audio.openal.ALC;
|
|
import java.nio.IntBuffer;
|
|
|
|
public final class AndroidALC implements ALC {
|
|
|
|
static {
|
|
System.loadLibrary("openalsoftjme");
|
|
}
|
|
|
|
public AndroidALC() {
|
|
}
|
|
|
|
public native void createALC();
|
|
|
|
public native void destroyALC();
|
|
|
|
public native boolean isCreated();
|
|
|
|
public native String alcGetString(int parameter);
|
|
|
|
public native boolean alcIsExtensionPresent(String extension);
|
|
|
|
public native void alcGetInteger(int param, IntBuffer buffer, int size);
|
|
|
|
public native void alcDevicePauseSOFT();
|
|
|
|
public native void alcDeviceResumeSOFT();
|
|
}
|