Mercurial > repos > blastem
diff genesis.c @ 2278:5a21bc0ec583
Implement turbo/slo mo for Sega CD
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 02 Jan 2023 13:08:49 -0800 |
parents | 9e578fd493e1 |
children | 9ead0fe69d9b |
line wrap: on
line diff
--- a/genesis.c Mon Jan 02 12:24:22 2023 -0800 +++ b/genesis.c Mon Jan 02 13:08:49 2023 -0800 @@ -1356,6 +1356,10 @@ while (context->ym->current_cycle != context->psg->cycles) { sync_sound(context, context->psg->cycles + MCLKS_PER_PSG); } + if (context->expansion) { + segacd_context *cd = context->expansion; + segacd_set_speed_percent(cd, percent); + } ym_adjust_master_clock(context->ym, context->master_clock); psg_adjust_master_clock(context->psg, context->master_clock); }