mirror of
https://github.com/ApfelTeeSaft/OpenRoyale.git
synced 2026-08-26 19:33:32 +00:00
13 lines
783 B
C++
13 lines
783 B
C++
// fmod_stub.cpp - minimal arm64/v7a stand-in for libfmod.so (audio disabled).
|
|
//
|
|
// The real FMOD library is proprietary and only shipped as a 32-bit binary in the original APK.
|
|
// This stub provides just enough for the APK to LOAD on 64-bit devices: JNI_OnLoad + the two
|
|
// org.fmod.MediaCodec native methods the Java side may bind. Audio is silent until the official
|
|
// FMOD arm64 build (fetch_fmod.sh) or a real shim is dropped into native/third_party/fmod/.
|
|
#include <jni.h>
|
|
extern "C" {
|
|
jint JNI_OnLoad(JavaVM*, void*) { return JNI_VERSION_1_6; }
|
|
JNIEXPORT jlong JNICALL Java_org_fmod_MediaCodec_fmodGetSize(JNIEnv*, jclass, jlong) { return 0; }
|
|
JNIEXPORT jint JNICALL Java_org_fmod_MediaCodec_fmodReadAt(JNIEnv*, jclass, jlong, jlong, jbyteArray, jint, jint) { return 0; }
|
|
}
|