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