implemented GetDriverCaps
This commit is contained in:
parent
60c7ddb7fe
commit
aaf1cf73bd
|
@ -623,7 +623,10 @@ public class FSound {
|
||||||
* @param caps IntBuffer to have the caps bits stored
|
* @param caps IntBuffer to have the caps bits stored
|
||||||
* @return On success, TRUE is returned. On failure, FALSE is returned
|
* @return On success, TRUE is returned. On failure, FALSE is returned
|
||||||
*/
|
*/
|
||||||
public static native boolean FSOUND_GetDriverCaps(int driverid, IntBuffer caps);
|
public static boolean FSOUND_GetDriverCaps(int driverid, IntBuffer caps) {
|
||||||
|
return nFSOUND_GetDriverCaps(driverid, caps, caps.position());
|
||||||
|
}
|
||||||
|
private static native boolean nFSOUND_GetDriverCaps(int driverid, IntBuffer caps, int offset);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the name of the selected driver. Drivers are enumerated when selecting a driver with
|
* Returns the name of the selected driver. Drivers are enumerated when selecting a driver with
|
||||||
|
|
|
@ -193,9 +193,9 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_fmod3_FSound_FSOUND_1GetDriver(JNIEnv * en
|
||||||
* Method: FSOUND_GetDriverCaps
|
* Method: FSOUND_GetDriverCaps
|
||||||
* Signature: (ILjava/nio/IntBuffer;)Z
|
* Signature: (ILjava/nio/IntBuffer;)Z
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_fmod3_FSound_FSOUND_1GetDriverCaps(JNIEnv * env, jclass clazz, jint, jobject) {
|
JNIEXPORT jboolean JNICALL Java_org_lwjgl_fmod3_FSound_nFSOUND_1GetDriverCaps(JNIEnv * env, jclass clazz, jint id, jobject buffer, jint offset) {
|
||||||
throwFMODException(env, "missing implementation");
|
unsigned int* caps = offset + (unsigned int *) env->GetDirectBufferAddress(buffer);
|
||||||
return false;
|
return fmod_instance->FSOUND_GetDriverCaps(id, caps);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue