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);