From 81f808e18438f3a52e51a0cc42d1ad70ba1abee3 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 10 Feb 2018 15:02:22 +0200 Subject: [PATCH] Refinements for the Wii U port --- Core/apu.h | 3 ++- libretro/libretro.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/apu.h b/Core/apu.h index c50d5a8..c4d4fc7 100644 --- a/Core/apu.h +++ b/Core/apu.h @@ -8,7 +8,8 @@ #ifdef GB_INTERNAL /* Divides nicely and never overflows with 4 channels and 8 (1-8) volume levels */ #ifdef WIIU -#define MAX_CH_AMP 0x1FE0 / 4 +/* Todo: Remove this hack once https://github.com/libretro/RetroArch/issues/6252 is fixed*/ +#define MAX_CH_AMP (0x1FE0 / 4) #else #define MAX_CH_AMP 0x1FE0 #endif diff --git a/libretro/libretro.c b/libretro/libretro.c index dfddc6a..98b88c2 100644 --- a/libretro/libretro.c +++ b/libretro/libretro.c @@ -9,7 +9,8 @@ #ifndef WIIU #define AUDIO_FREQUENCY 384000 #else -#define AUDIO_FREQUENCY 44100 +/* Use the internal sample rate for the Wii U */ +#define AUDIO_FREQUENCY 48000 #endif #define FRAME_RATE (0x400000 / 70224.0)