summaryrefslogtreecommitdiff
path: root/sms.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-03-28 23:36:08 -0700
committerMichael Pavone <pavone@retrodev.com>2018-03-28 23:36:08 -0700
commit843f39ba736fc39c00275850ee2ec860093cd9a2 (patch)
tree732ee291762f8c3f897e01ceaccd6828bad802c6 /sms.c
parente04a8ca03c0752a16e873a549961f9d739abd02e (diff)
Small cleanup to audio interface between emulation code and renderer backend
Diffstat (limited to 'sms.c')
-rw-r--r--sms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sms.c b/sms.c
index 8e54619..c0fb1e3 100644
--- a/sms.c
+++ b/sms.c
@@ -336,7 +336,6 @@ done:
static void run_sms(system_header *system)
{
- render_disable_ym();
sms_context *sms = (sms_context *)system;
uint32_t target_cycle = sms->z80->current_cycle + 3420*16;
//TODO: PAL support
@@ -387,14 +386,15 @@ static void run_sms(system_header *system)
}
}
vdp_release_framebuffer(sms->vdp);
+ render_pause_source(sms->psg->audio);
sms->should_return = 0;
- render_enable_ym();
}
static void resume_sms(system_header *system)
{
sms_context *sms = (sms_context *)system;
vdp_reacquire_framebuffer(sms->vdp);
+ render_resume_source(sms->psg->audio);
run_sms(system);
}