aboutsummaryrefslogtreecommitdiff
path: root/patches/gpsp
diff options
context:
space:
mode:
Diffstat (limited to 'patches/gpsp')
-rw-r--r--patches/gpsp/0001-avoid-audio-popping.patch16
-rw-r--r--patches/gpsp/1000-trimui-build.patch2
2 files changed, 1 insertions, 17 deletions
diff --git a/patches/gpsp/0001-avoid-audio-popping.patch b/patches/gpsp/0001-avoid-audio-popping.patch
deleted file mode 100644
index ed868a4..0000000
--- a/patches/gpsp/0001-avoid-audio-popping.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-diff --git a/sound.h b/sound.h
-index 08d1de5..93221d5 100644
---- a/sound.h
-+++ b/sound.h
-@@ -24,8 +24,10 @@
- #define BUFFER_SIZE_MASK (BUFFER_SIZE - 1)
-
- #define GBA_SOUND_FREQUENCY (64 * 1024)
-+#define GBA_60HZ_RATE 16853760.0f /* 228*(272+960)*60 */
-
--#define GBC_BASE_RATE ((float)(16 * 1024 * 1024))
-+// run GBA at 60Hz (~0.5% faster) to better match host display
-+#define GBC_BASE_RATE GBA_60HZ_RATE
-
- typedef enum
- {
diff --git a/patches/gpsp/1000-trimui-build.patch b/patches/gpsp/1000-trimui-build.patch
index 2f9e7da..ecf9623 100644
--- a/patches/gpsp/1000-trimui-build.patch
+++ b/patches/gpsp/1000-trimui-build.patch
@@ -10,7 +10,7 @@ index ecefd12..91fc859 100644
+ TARGET := $(TARGET_NAME)_libretro.so
+ CC = $(CROSS_COMPILE)gcc
+ SHARED := -shared -Wl,--version-script=link.T -mcpu=arm926ej-s -mtune=arm926ej-s
-+ CFLAGS += -ffast-math -fdata-sections -ffunction-sections -flto -fno-PIC
++ CFLAGS += -ffast-math -fdata-sections -ffunction-sections -flto -fno-PIC -DOVERCLOCK_60FPS
+ LDFLAGS += -flto
+ ifeq (,$(DEBUG))
+ LDFLAGS += -s