aboutsummaryrefslogtreecommitdiff
path: root/plugins/dfsound
diff options
context:
space:
mode:
authornotaz2011-02-03 23:56:14 +0200
committernotaz2011-02-04 15:11:59 +0200
commit9098b863732585e49d22dba266c4f342ed1ecaa6 (patch)
treed9096ecddefcb69a65bb308f971e787450509afd /plugins/dfsound
parent495eab932257c0925a4ab89071c43249ec1d1698 (diff)
downloadpcsx_rearmed-9098b863732585e49d22dba266c4f342ed1ecaa6.tar.gz
pcsx_rearmed-9098b863732585e49d22dba266c4f342ed1ecaa6.tar.bz2
pcsx_rearmed-9098b863732585e49d22dba266c4f342ed1ecaa6.zip
spu: fix xa masking, was causing noise
Diffstat (limited to 'plugins/dfsound')
-rw-r--r--plugins/dfsound/xa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/dfsound/xa.c b/plugins/dfsound/xa.c
index fdae4f9..df60346 100644
--- a/plugins/dfsound/xa.c
+++ b/plugins/dfsound/xa.c
@@ -359,7 +359,6 @@ INLINE void FeedXA(xa_decode_t *xap)
vr+=(gauss[vl+2]*gvall(2))&~2047;
vr+=(gauss[vl+3]*gvall(3))&~2047;
l=s= vr >> 11;
- l &= 0xffff;
}
else
{
@@ -371,6 +370,7 @@ INLINE void FeedXA(xa_decode_t *xap)
l=s;
}
+ l &= 0xffff;
*XAFeed++=(l|(l<<16));
if(XAFeed==XAEnd) XAFeed=XAStart;