Moved openal native stub loading to java

This commit is contained in:
Elias Naur 2004-07-04 09:13:19 +00:00
parent 8585d8b2a5
commit b7e4214a1a
13 changed files with 30 additions and 89 deletions

View file

@ -170,6 +170,7 @@ public abstract class AL {
oalPaths[oalPaths.length - 1] = "";
nCreate(oalPaths);
AL10.initNativeStubs();
ALC.create();
device = ALC.alcOpenDevice(deviceArguments);

View file

@ -357,6 +357,8 @@ public final class AL10 {
/** Distance model */
public static final int AL_INVERSE_DISTANCE_CLAMPED = 0xD002;
static native void initNativeStubs();
/**
* The application can temporarily disable certain AL capabilities on a per Context
* basis. This allows the driver implementation to optimize for certain subsets of

View file

@ -165,11 +165,13 @@ public class ALC {
if (created) {
return;
}
initNativeStubs();
init();
created = true;
}
private static native void initNativeStubs();
/**
* Calls whatever destruction rutines that are needed
*/