mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 14:35:58 +00:00
Converted openal to dynamic java native methods
This commit is contained in:
parent
7141b99fe4
commit
21cdb1f469
13 changed files with 338 additions and 1224 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue