From 13e8181d8b0aa3c78cc486294f845f024d139891 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Wed, 11 Jul 2012 02:39:07 +0200 Subject: [PATCH] Duct tape fix - setting samplerate to 44Khz fixes the audio underruns (tested on PS3/PC) --- libretro/libretro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretro/libretro.c b/libretro/libretro.c index 0915a84..5fde1ed 100644 --- a/libretro/libretro.c +++ b/libretro/libretro.c @@ -266,7 +266,7 @@ static const double ntsc_fps = 53693175.0 / (3420.0 * 262.0); static void init_audio(void) { - audio_init(32000, vdp_pal ? pal_fps : ntsc_fps); + audio_init(44100, vdp_pal ? pal_fps : ntsc_fps); soundbuffer = malloc(snd.buffer_size * 2 * 2); } @@ -737,7 +737,7 @@ static void retro_set_viewport_dimensions(void) geom.max_width = 1024; geom.max_height = 512; - timing.sample_rate = 32000; + timing.sample_rate = 44100; if (vdp_pal) timing.fps = pal_fps;