From 448e46ddce803095f2c1193172277db5eaab1ff7 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Fri, 8 Apr 2016 12:37:09 +0300 Subject: [PATCH] Support for PCM_12 and PCM_34 in SDL port --- SDL/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SDL/main.c b/SDL/main.c index ecd6128a..2bb593bc 100644 --- a/SDL/main.c +++ b/SDL/main.c @@ -194,6 +194,11 @@ usage: gb_set_pixels_output(&gb, screen->pixels); gb_set_rgb_encode_callback(&gb, rgb_encode); + /* Despite sound not being supported in the SDL port, registers PCM_12 and PCM_34 require + a sample rate to be set in order to operate. This also means PCM_XX emulation is not + really accurate yet, as it depends on the sample rate. */ + gb_set_sample_rate(&gb, 96000); + while (true) { gb_run(&gb); }