Merge pull request #641 from wheremyfoodat/more-dsp
JNI driver: Add setAudioEnabled hook
This commit is contained in:
@@ -66,7 +66,6 @@ class Emulator {
|
|||||||
#ifdef PANDA3DS_ENABLE_DISCORD_RPC
|
#ifdef PANDA3DS_ENABLE_DISCORD_RPC
|
||||||
Discord::RPC discordRpc;
|
Discord::RPC discordRpc;
|
||||||
#endif
|
#endif
|
||||||
void setAudioEnabled(bool enable);
|
|
||||||
void updateDiscord();
|
void updateDiscord();
|
||||||
|
|
||||||
// Keep the handle for the ROM here to reload when necessary and to prevent deleting it
|
// Keep the handle for the ROM here to reload when necessary and to prevent deleting it
|
||||||
@@ -99,6 +98,7 @@ class Emulator {
|
|||||||
void resume(); // Resume the emulator
|
void resume(); // Resume the emulator
|
||||||
void pause(); // Pause the emulator
|
void pause(); // Pause the emulator
|
||||||
void togglePause();
|
void togglePause();
|
||||||
|
void setAudioEnabled(bool enable);
|
||||||
|
|
||||||
bool loadAmiibo(const std::filesystem::path& path);
|
bool loadAmiibo(const std::filesystem::path& path);
|
||||||
bool loadROM(const std::filesystem::path& path);
|
bool loadROM(const std::filesystem::path& path);
|
||||||
|
|||||||
@@ -48,6 +48,11 @@ MAKE_SETTING(setAccurateShaderMulEnable, jboolean, accurateShaderMul)
|
|||||||
|
|
||||||
#undef MAKE_SETTING
|
#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) {
|
AlberFunction(void, Setup)(JNIEnv* env, jobject obj) {
|
||||||
env->GetJavaVM(&jvm);
|
env->GetJavaVM(&jvm);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user