diff nuklear_ui/blastem_nuklear.c @ 2556:6f1eebc0a90b

Add auto option for fm_dac config variable that bases zero offset on the select MD model
author Michael Pavone <pavone@retrodev.com>
date Sat, 11 Jan 2025 23:21:36 -0800
parents 6aa3025bbf5f
children 251cc75574af
line wrap: on
line diff
--- a/nuklear_ui/blastem_nuklear.c	Sat Jan 11 23:03:24 2025 -0800
+++ b/nuklear_ui/blastem_nuklear.c	Sat Jan 11 23:21:36 2025 -0800
@@ -2113,10 +2113,12 @@
 		"64"
 	};
 	const char *dac[] = {
+		"auto",
 		"zero_offset",
 		"linear"
 	};
 	const char *dac_desc[] = {
+		"Default for Model",
 		"Zero Offset",
 		"Linear"
 	};
@@ -2129,7 +2131,7 @@
 	if (selected_rate < 0 || selected_size < 0 || selected_dac < 0) {
 		selected_rate = find_match(rates, num_rates, "audio\0rate\0", "48000");
 		selected_size = find_match(sizes, num_sizes, "audio\0buffer\0", "512");
-		selected_dac = find_match(dac, num_dacs, "audio\0fm_dac\0", "zero_offset");
+		selected_dac = find_match(dac, num_dacs, "audio\0fm_dac\0", "auto");
 	}
 	uint32_t width = render_width();
 	uint32_t height = render_height();