Get Mockingboard working somewhat better

This commit is contained in:
Aaron Culliney 2015-09-13 12:43:34 -07:00
parent 54e6b7598e
commit f343ad9dbd
3 changed files with 3 additions and 3 deletions

View File

@ -128,7 +128,7 @@
<string name="mockingboard_disabled_title">Mockingboard disabled</string>
<string name="mockingboard_disabled_mesg">Mockingboard could not be enabled</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_summary">Set the Mockingboard(s) volume</string>
<string name="no">No</string>

View File

@ -62,7 +62,7 @@ jboolean Java_org_deadc0de_apple2ix_Apple2Preferences_nativeSetMockingboardEnabl
assert(cpu_isPaused());
MB_SetEnabled(enabled);
timing_reinitializeAudio();
return MB_ISEnabled();
return enabled;
}
void Java_org_deadc0de_apple2ix_Apple2Preferences_nativeSetMockingboardVolume(JNIEnv *env, jclass cls, jint goesToTen) {

View File

@ -1760,7 +1760,7 @@ void MB_Destroy()
}
void MB_SetEnabled(bool enabled) {
g_bDisableDirectSoundMockingboard = true;
g_bDisableDirectSoundMockingboard = !enabled;
}
bool MB_ISEnabled(void) {