From: notaz Date: Thu, 3 Feb 2011 21:56:14 +0000 (+0200) Subject: spu: fix xa masking, was causing noise X-Git-Tag: r6~23 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9098b863732585e49d22dba266c4f342ed1ecaa6;p=pcsx_rearmed.git spu: fix xa masking, was causing noise --- diff --git a/plugins/dfsound/xa.c b/plugins/dfsound/xa.c index fdae4f9e..df60346a 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;