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
try again
[pcsx_rearmed.git]
/
plugins
/
dfsound
/
xa.c
diff --git
a/plugins/dfsound/xa.c
b/plugins/dfsound/xa.c
index
c93612f
..
397ed59
100644
(file)
--- a/
plugins/dfsound/xa.c
+++ b/
plugins/dfsound/xa.c
@@
-16,6
+16,7
@@
***************************************************************************/
#include "stdafx.h"
***************************************************************************/
#include "stdafx.h"
+#include "spu.h"
#define _IN_XA
#include <stdint.h>
#define _IN_XA
#include <stdint.h>
@@
-60,8
+61,8
@@
INLINE void MixXA(int *SSumLR, int ns_to, int decode_pos)
SSumLR[ns++] += l;
SSumLR[ns++] += r;
SSumLR[ns++] += l;
SSumLR[ns++] += r;
- spu.spuMem[cursor] =
v
;
- spu.spuMem[cursor + 0x400/2] =
v >> 16
;
+ spu.spuMem[cursor] =
HTOLE16(v)
;
+ spu.spuMem[cursor + 0x400/2] =
HTOLE16(v >> 16)
;
cursor = (cursor + 1) & 0x1ff;
}
spu.XALastVal = v;
cursor = (cursor + 1) & 0x1ff;
}
spu.XALastVal = v;
@@
-80,8
+81,8
@@
INLINE void MixXA(int *SSumLR, int ns_to, int decode_pos)
SSumLR[ns++] += l;
SSumLR[ns++] += r;
SSumLR[ns++] += l;
SSumLR[ns++] += r;
- spu.spuMem[cursor] =
v
;
- spu.spuMem[cursor + 0x400/2] =
v >> 16
;
+ spu.spuMem[cursor] =
HTOLE16(v)
;
+ spu.spuMem[cursor + 0x400/2] =
HTOLE16(v >> 16)
;
cursor = (cursor + 1) & 0x1ff;
}
spu.XALastVal = v;
cursor = (cursor + 1) & 0x1ff;
}
spu.XALastVal = v;
@@
-120,7
+121,7
@@
INLINE void FeedXA(xa_decode_t *xap)
if(!spu.bSPUIsOpen) return;
spu.xapGlobal = xap; // store info for save states
if(!spu.bSPUIsOpen) return;
spu.xapGlobal = xap; // store info for save states
- spu.XARepeat =
100;
// set up repeat
+ spu.XARepeat =
3;
// set up repeat
#if 0//def XA_HACK
iSize=((45500*xap->nsamples)/xap->freq); // get size
#if 0//def XA_HACK
iSize=((45500*xap->nsamples)/xap->freq); // get size