From 9369626d3873972003f2a6ce807a00fc90bbd541 Mon Sep 17 00:00:00 2001 From: Brian Matzon Date: Sun, 23 May 2004 13:50:08 +0000 Subject: [PATCH] fmod support --- src/native/common/common_tools.cpp | 4 ++++ src/native/common/common_tools.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/native/common/common_tools.cpp b/src/native/common/common_tools.cpp index a4845534..c01faa94 100644 --- a/src/native/common/common_tools.cpp +++ b/src/native/common/common_tools.cpp @@ -117,6 +117,10 @@ void throwOpenALException(JNIEnv * env, const char * err) { throwGeneralException(env, "org/lwjgl/openal/OpenALException", err); } +void throwFMODException(JNIEnv * env, const char * err) { + throwGeneralException(env, "org/lwjgl/fmod/FMODException", err); +} + void throwException(JNIEnv * env, const char * err) { throwGeneralException(env, "org/lwjgl/LWJGLException", err); } diff --git a/src/native/common/common_tools.h b/src/native/common/common_tools.h index 0c04e537..836c5376 100644 --- a/src/native/common/common_tools.h +++ b/src/native/common/common_tools.h @@ -62,6 +62,7 @@ extern unsigned char *getOutputList(event_queue_t *queue); //extern int getEventBufferSize(event_queue_t *event_queue); extern void throwException(JNIEnv *env, const char *msg); extern void throwOpenALException(JNIEnv * env, const char * err); +extern void throwFMODException(JNIEnv * env, const char * err); extern void setDebugEnabled(bool enable); extern void printfDebug(const char *format, ...); extern bool getBooleanProperty(JNIEnv *env, const char* propertyName);