From a1b4714da9b135a864ebe1b53b8bf4c67b8b18d5 Mon Sep 17 00:00:00 2001 From: neonloop Date: Thu, 21 Oct 2021 00:19:07 +0000 Subject: Adds gme (Game Music Emu) core --- patches/gme/0001-fix-sample-size.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 patches/gme/0001-fix-sample-size.patch (limited to 'patches/gme/0001-fix-sample-size.patch') diff --git a/patches/gme/0001-fix-sample-size.patch b/patches/gme/0001-fix-sample-size.patch new file mode 100644 index 0000000..27cc6b1 --- /dev/null +++ b/patches/gme/0001-fix-sample-size.patch @@ -0,0 +1,26 @@ +diff --git a/src/libretro.c b/src/libretro.c +index 1e2b37f..d393a5a 100644 +--- a/src/libretro.c ++++ b/src/libretro.c +@@ -180,7 +180,7 @@ void retro_run(void) + draw_ui(); + video_cb(framebuffer->pixel_data, framebuffer->width, framebuffer->height, framebuffer->bytes_per_pixel * framebuffer->width); + //audio handling +- audio_batch_cb(play(),1470); ++ audio_batch_cb(play(),735); + } + + // File Loading +diff --git a/src/player.c b/src/player.c +index 1daf980..e7c69be 100644 +--- a/src/player.c ++++ b/src/player.c +@@ -86,7 +86,7 @@ short *play(void) + is_playing_ = false; + } + else +- gme_play( emu, 2048, audio_buffer ); ++ gme_play( emu, 1470, audio_buffer ); + } + else + memset(audio_buffer,0,8192 * sizeof(short)); -- cgit v1.2.3