diff options
author | athomas <[email protected]> | 2003-11-23 01:39:59 +0000 |
---|---|---|
committer | athomas <[email protected]> | 2003-11-23 01:39:59 +0000 |
commit | 958b4a62bbfa639ad27756037049c9db3e7d3bf2 (patch) | |
tree | fc2bc580070c584a799c32e4509980e99309fb64 /src/native/alfactory.c | |
parent | ebe0f9a9ea29dd09332cafe65286f563bb08f6d6 (diff) |
Several changes, uses newest lwjgl extal, throws exceptions from native code if AL doesn't load correctly and creates Context and Device objects in Native code.
git-svn-id: file:///home/mbien/NetBeansProjects/JOGAMP/joal-sync/git-svn/../svn-server-sync/joal/trunk@69 03bf7f67-59de-4072-a415-9a990d468a3f
Diffstat (limited to 'src/native/alfactory.c')
-rw-r--r-- | src/native/alfactory.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/native/alfactory.c b/src/native/alfactory.c index d989580..a497c0c 100644 --- a/src/native/alfactory.c +++ b/src/native/alfactory.c @@ -33,15 +33,14 @@ #include "alfactory.h" #include "extal.h" -#include <jni.h> +#include "jni.h" JNIEXPORT jboolean JNICALL Java_net_java_games_joal_ALFactory_init (JNIEnv *env , jclass clazz, jobjectArray oalPaths) { printf("ALFactory.init - Native: Enter\n"); - jboolean result = InitializeOpenAL(env,oalPaths); - printf("ALFactory.init - Native: Test 1 result = %i\n",result); + InitializeOpenAL(env,oalPaths); printf("ALFactory.init - Native: Exit\n"); - return result; + return 1; } JNIEXPORT jboolean JNICALL Java_net_java_games_joal_ALFactory_deinitialize |