JNI driver: Add setAudioEnabled hook

This commit is contained in:
wheremyfoodat 2024-11-20 21:45:22 +02:00
parent b78450c88d
commit 1baf8a13ed
2 changed files with 6 additions and 1 deletions

View file

@ -48,6 +48,11 @@ MAKE_SETTING(setAccurateShaderMulEnable, jboolean, accurateShaderMul)
#undef MAKE_SETTING
AlberFunction(void, setAudioEnabled)(JNIEnv* env, jobject obj, jboolean value) {
emulator->getConfig().audioEnabled = value;
emulator->setAudioEnabled(value);
}
AlberFunction(void, Setup)(JNIEnv* env, jobject obj) {
env->GetJavaVM(&jvm);