summaryrefslogtreecommitdiff
path: root/sms.c
diff options
context:
space:
mode:
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);
}