Support for PCM_12 and PCM_34 in SDL port

This commit is contained in:
Lior Halphon 2016-04-08 12:37:09 +03:00
parent f448865b8a
commit 448e46ddce
1 changed files with 5 additions and 0 deletions

View File

@ -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);
}