mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-09-29 23:54:53 +00:00
Get Mockingboard working somewhat better
This commit is contained in:
parent
54e6b7598e
commit
f343ad9dbd
@ -128,7 +128,7 @@
|
|||||||
<string name="mockingboard_disabled_title">Mockingboard disabled</string>
|
<string name="mockingboard_disabled_title">Mockingboard disabled</string>
|
||||||
<string name="mockingboard_disabled_mesg">Mockingboard could not be enabled</string>
|
<string name="mockingboard_disabled_mesg">Mockingboard could not be enabled</string>
|
||||||
<string name="mockingboard_enable">Enable Mockingboard</string>
|
<string name="mockingboard_enable">Enable Mockingboard</string>
|
||||||
<string name="mockingboard_enable_summary">Revision C in Slot 4/5</string>
|
<string name="mockingboard_enable_summary">Revision C in Slot 4/5 (may require restart)</string>
|
||||||
<string name="mockingboard_volume">Mockingboard volume</string>
|
<string name="mockingboard_volume">Mockingboard volume</string>
|
||||||
<string name="mockingboard_volume_summary">Set the Mockingboard(s) volume</string>
|
<string name="mockingboard_volume_summary">Set the Mockingboard(s) volume</string>
|
||||||
<string name="no">No</string>
|
<string name="no">No</string>
|
||||||
|
@ -62,7 +62,7 @@ jboolean Java_org_deadc0de_apple2ix_Apple2Preferences_nativeSetMockingboardEnabl
|
|||||||
assert(cpu_isPaused());
|
assert(cpu_isPaused());
|
||||||
MB_SetEnabled(enabled);
|
MB_SetEnabled(enabled);
|
||||||
timing_reinitializeAudio();
|
timing_reinitializeAudio();
|
||||||
return MB_ISEnabled();
|
return enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Java_org_deadc0de_apple2ix_Apple2Preferences_nativeSetMockingboardVolume(JNIEnv *env, jclass cls, jint goesToTen) {
|
void Java_org_deadc0de_apple2ix_Apple2Preferences_nativeSetMockingboardVolume(JNIEnv *env, jclass cls, jint goesToTen) {
|
||||||
|
@ -1760,7 +1760,7 @@ void MB_Destroy()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MB_SetEnabled(bool enabled) {
|
void MB_SetEnabled(bool enabled) {
|
||||||
g_bDisableDirectSoundMockingboard = true;
|
g_bDisableDirectSoundMockingboard = !enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MB_ISEnabled(void) {
|
bool MB_ISEnabled(void) {
|
||||||
|
Loading…
Reference in New Issue
Block a user