fix audio buffer offsets

This commit is contained in:
Sonic Dreamcaster 2024-12-02 16:33:25 -03:00
parent 7f89c5fc53
commit 840fc5617d

View File

@ -15,10 +15,10 @@
#define ROUND_UP_8(v) (((v) + 7) & ~7) #define ROUND_UP_8(v) (((v) + 7) & ~7)
#define ROUND_DOWN_16(v) ((v) & ~0xf) #define ROUND_DOWN_16(v) ((v) & ~0xf)
//#define DMEM_BUF_SIZE (0x1000 - 0x0330 - 0x10 - 0x40) #define DMEM_BUF_SIZE (0x1000)
#define DMEM_BUF_SIZE 0xC80 // #define DMEM_BUF_SIZE 0xC90
#define BUF_U8(a) (rspa.buf.as_u8 + ((a)-0x0330)) #define BUF_U8(a) (rspa.buf.as_u8 + ((a)-0x450))
#define BUF_S16(a) (rspa.buf.as_s16 + ((a)-0x0330) / sizeof(int16_t)) #define BUF_S16(a) (rspa.buf.as_s16 + ((a)-0x450) / sizeof(int16_t))
static struct { static struct {
uint16_t in; uint16_t in;