From 840fc5617de1997c0d99e1251bc7bfffe691c7e7 Mon Sep 17 00:00:00 2001 From: Sonic Dreamcaster Date: Mon, 2 Dec 2024 16:33:25 -0300 Subject: [PATCH] fix audio buffer offsets --- src/audio/mixer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/audio/mixer.c b/src/audio/mixer.c index 24ac712a..d9da7769 100644 --- a/src/audio/mixer.c +++ b/src/audio/mixer.c @@ -15,10 +15,10 @@ #define ROUND_UP_8(v) (((v) + 7) & ~7) #define ROUND_DOWN_16(v) ((v) & ~0xf) -//#define DMEM_BUF_SIZE (0x1000 - 0x0330 - 0x10 - 0x40) -#define DMEM_BUF_SIZE 0xC80 -#define BUF_U8(a) (rspa.buf.as_u8 + ((a)-0x0330)) -#define BUF_S16(a) (rspa.buf.as_s16 + ((a)-0x0330) / sizeof(int16_t)) +#define DMEM_BUF_SIZE (0x1000) +// #define DMEM_BUF_SIZE 0xC90 +#define BUF_U8(a) (rspa.buf.as_u8 + ((a)-0x450)) +#define BUF_S16(a) (rspa.buf.as_s16 + ((a)-0x450) / sizeof(int16_t)) static struct { uint16_t in;