Converted openal to dynamic java native methods

This commit is contained in:
Elias Naur 2004-03-09 11:03:10 +00:00
parent 7141b99fe4
commit 21cdb1f469
13 changed files with 338 additions and 1224 deletions

View file

@ -443,8 +443,6 @@ public final class AL10 {
*/
public static native float alGetFloat(int pname);
private static native void nalGetBooleanv(int pname, ByteBuffer data, int offset);
/**
* Like OpenGL, AL uses a simplified interface for querying global state.
*

View file

@ -170,20 +170,10 @@ public class ALC {
return;
}
if (!nCreate()) {
throw new OpenALException("ALC instance could not be created.");
}
init();
created = true;
}
/**
* Native method to create ALC instance
*
* @return true if the ALC creation process succeeded
*/
protected static native boolean nCreate();
/**
* Calls whatever destruction rutines that are needed
*/
@ -192,14 +182,8 @@ public class ALC {
return;
}
created = false;
nDestroy();
}
/**
* Native method the destroy the ALC
*/
protected static native void nDestroy();
/**
* The application can obtain certain strings from ALC.
*
@ -410,4 +394,4 @@ public class ALC {
}
native static int nalcGetEnumValue(int device, String enumName);
}
}