mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-02-02 16:23:57 +03:00
fix audio buffer offsets
This commit is contained in:
parent
7f89c5fc53
commit
840fc5617d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user