***************************************************************************/\r
\r
#include "stdafx.h"\r
+#include "spu.h"\r
\r
#define _IN_REVERB\r
\r
\r
// get_buffer content helper: takes care about wraps\r
#define g_buffer(var) \\r
- ((int)(signed short)spu.spuMem[rvb2ram_offs(curr_addr, space, rvb->var)])\r
+ ((int)(signed short)LE16TOH(spu.spuMem[rvb2ram_offs(curr_addr, space, rvb->var)]))\r
\r
// saturate iVal and store it as var\r
#define s_buffer(var, iVal) \\r
ssat32_to_16(iVal); \\r
- spu.spuMem[rvb2ram_offs(curr_addr, space, rvb->var)] = iVal\r
+ spu.spuMem[rvb2ram_offs(curr_addr, space, rvb->var)] = HTOLE16(iVal)\r
\r
#define s_buffer1(var, iVal) \\r
ssat32_to_16(iVal); \\r
- spu.spuMem[rvb2ram_offs(curr_addr, space, rvb->var + 1)] = iVal\r
+ spu.spuMem[rvb2ram_offs(curr_addr, space, rvb->var + 1)] = HTOLE16(iVal)\r
\r
////////////////////////////////////////////////////////////////////////\r
\r
REVERBInfo *rvb = spu.rvb;\r
int space, t;\r
\r
- t = spu.regArea[(H_SPUReverbAddr - 0xc00) >> 1];\r
+ t = regAreaGet(H_SPUReverbAddr);\r
if (t == 0xFFFF || t <= 0x200)\r
spu.rvb->StartAddr = spu.rvb->CurrAddr = 0;\r
else if (spu.rvb->StartAddr != (t << 2))\r