From 9098b863732585e49d22dba266c4f342ed1ecaa6 Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 3 Feb 2011 23:56:14 +0200 Subject: [PATCH] spu: fix xa masking, was causing noise --- plugins/dfsound/xa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5