From 958b4a62bbfa639ad27756037049c9db3e7d3bf2 Mon Sep 17 00:00:00 2001 From: athomas Date: Sun, 23 Nov 2003 01:39:59 +0000 Subject: 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 --- src/native/alfactory.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/native/alfactory.c') 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 +#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 -- cgit v1.2.3