diff genesis.c @ 1565:61fafcbc2c38

Audio DRC now sounds good in both NTSC and PAL, just need to adjust constants to minimize latency without leading to dropouts
author Michael Pavone <pavone@retrodev.com>
date Sat, 14 Apr 2018 23:08:08 -0700
parents a0fbb1e90533
children 2b132d894d76
line wrap: on
line diff
--- a/genesis.c	Sat Apr 14 00:07:20 2018 -0700
+++ b/genesis.c	Sat Apr 14 23:08:08 2018 -0700
@@ -1072,7 +1072,6 @@
 {
 	genesis_context *gen = (genesis_context *)system;
 	set_keybindings(&gen->io);
-	render_set_video_standard((gen->version_reg & HZ50) ? VID_PAL : VID_NTSC);
 	if (statefile) {
 		//first try loading as a native format savestate
 		deserialize_buffer state;
@@ -1237,6 +1236,8 @@
 	gen->int_latency_prev1 = MCLKS_PER_68K * 32;
 	gen->int_latency_prev2 = MCLKS_PER_68K * 16;
 	
+	render_set_video_standard((gen->version_reg & HZ50) ? VID_PAL : VID_NTSC);
+	
 	gen->ym = malloc(sizeof(ym2612_context));
 	ym_init(gen->ym, gen->master_clock, MCLKS_PER_YM, system_opts);