From 20ebbdb7a05089d37e64a1cdfde10261b45bc2bc Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Sun, 13 May 2012 22:22:57 +0200 Subject: [PATCH] (libretro) Added 40 and 50fps modes --- src/libretro/libretro.c | 79 +++++++++++------------------------------ src/m_menu.c | 4 +-- src/m_misc.c | 4 +-- 3 files changed, 24 insertions(+), 63 deletions(-) diff --git a/src/libretro/libretro.c b/src/libretro/libretro.c index b89c3ab..f5b90d1 100644 --- a/src/libretro/libretro.c +++ b/src/libretro/libretro.c @@ -29,6 +29,8 @@ /* PS3 values for i_sound.h - check if correct for libretro */ #define SAMPLECOUNT_35 ((4 * 11025) / 35) +#define SAMPLECOUNT_40 ((4 * 11025) / 40) +#define SAMPLECOUNT_50 ((4 * 11025) / 50) #define SAMPLECOUNT_60 ((4 * 11025) / 60) #define NUM_CHANNELS 32 #define BUFMUL 4 @@ -707,19 +709,15 @@ void I_StopSound (int handle) { int i; - //sys_lwmutex_lock (&chanmutex, 0); - for (i=0; i