FMOD Engine User Manual 2.03

7. Core API Reference | Android Specific

APIs and types for Android platform, see fmod_android.h

FMOD_Android_JNI_Close

Call to uninitialize FMOD from a native activity.

C
C++
C#

FMOD_RESULT FMOD_Android_JNI_Close();
RESULT FMOD.Android.JNI_Close();

Not supported for JavaScript.

When using a native activity, you will need to call this function after calling System::release.

See Also: Java

FMOD_Android_JNI_Init

Call to initialize FMOD from a native activity.

C
C++
C#

FMOD_RESULT FMOD_Android_JNI_Init(
    JavaVM *vm,
    jobject javaActivity
);
FMOD_RESULT FMOD.Android.JNI_Init(
    IntPtr vm,
    IntPtr javaActivity
);

Not supported for JavaScript.

vm
Pointer to the ANativeActivity::vm JavaVM.
javaActivity
Pointer to your ANativeActivity::clazz jobject.

When using a native activity, you will need to call this function before making calls into the FMOD API.
The vm must be attached to the current thread before being passed to this function. For example:

mApp->activity->vm->AttachCurrentThread(&mJniEnv, NULL);
FMOD_Android_JNI_Init(mApp->activity->vm, mApp->activity->clazz);

See Also: Java