From 5ccf556f7969fd2a1eeaa097abb2a0684b4c8969 Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 7 Dec 2023 01:45:51 +0200 Subject: [PATCH] spu: fix a wrong assumption about cd volume reported by xjsxjs197 again --- plugins/dfsound/xa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/dfsound/xa.c b/plugins/dfsound/xa.c index e3a9fb61..6b5433fb 100644 --- a/plugins/dfsound/xa.c +++ b/plugins/dfsound/xa.c @@ -82,7 +82,8 @@ INLINE void MixCD(int *SSumLR, int *RVB, int ns_to, int decode_pos) int ns; uint32_t v = spu.XALastVal; - if ((vll | vlr | vrl | vrr) == 0) + // note: spu volume doesn't affect cd capture + if ((spu.cdv.ll | spu.cdv.lr | spu.cdv.rl | spu.cdv.rr) == 0) { SkipCD(ns_to, decode_pos); return; -- 2.39.5