notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
attempt to fix build
[pcsx_rearmed.git]
/
plugins
/
dfsound
/
reverb.c
diff --git
a/plugins/dfsound/reverb.c
b/plugins/dfsound/reverb.c
index
ec570fb
..
c0ecea1
100644
(file)
--- a/
plugins/dfsound/reverb.c
+++ b/
plugins/dfsound/reverb.c
@@
-20,6
+20,7
@@
***************************************************************************/
\r
\r
#include "stdafx.h"
\r
***************************************************************************/
\r
\r
#include "stdafx.h"
\r
+#include "spu.h"
\r
\r
#define _IN_REVERB
\r
\r
\r
#define _IN_REVERB
\r
\r
@@
-50,16
+51,16
@@
INLINE int rvb2ram_offs(int curr, int space, int iOff)
\r
// get_buffer content helper: takes care about wraps
\r
#define g_buffer(var) \
\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
\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
\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
\r
////////////////////////////////////////////////////////////////////////
\r
\r
@@
-176,7
+177,7
@@
static void REVERBPrep(void)
REVERBInfo *rvb = spu.rvb;
\r
int space, t;
\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
if (t == 0xFFFF || t <= 0x200)
\r
spu.rvb->StartAddr = spu.rvb->CurrAddr = 0;
\r
else if (spu.rvb->StartAddr != (t << 2))
\r