cdrom: change pause timing again
[pcsx_rearmed.git] / plugins / dfsound / spu_c64x.h
1 #ifndef __P_SPU_C64X_H__
2 #define __P_SPU_C64X_H__
3
4 #include "externals.h"
5 #include "spu_config.h"
6
7 #define COMPONENT_NAME "pcsxr_spu"
8
9 enum {
10  CCMD_INIT = 0x101,
11  CCMD_DOIT = 0x102,
12 };
13
14 struct region_mem {
15  unsigned char spu_ram[512 * 1024];
16  sample_buf sb_thread[MAXCHAN];
17  // careful not to lose ARM writes by DSP overwriting
18  // with old data when it's writing out neighbor cachelines
19  int _pad1[128/4 - ((sizeof(sample_buf) * MAXCHAN / 4) & (128/4 - 1))];
20  struct spu_in {
21   // these are not to be modified by DSP
22   SPUCHAN s_chan[24 + 1];
23   REVERBInfo rvb;
24   SPUConfig spu_config;
25  } in;
26  int _pad2[128/4 - ((sizeof(struct spu_in) / 4) & (128/4 - 1))];
27  struct spu_worker worker;
28  // init/debug
29  int sizeof_region_mem;
30  int offsetof_s_chan1;
31  int offsetof_spos_3_20;
32 };
33
34 #define ACTIVE_CNT 3
35
36 #endif /* __P_SPU_C64X_H__ */