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
gpu_neon: revive the old tests
[pcsx_rearmed.git]
/
plugins
/
dfsound
/
xa.c
diff --git
a/plugins/dfsound/xa.c
b/plugins/dfsound/xa.c
index
6b5433f
..
380d138
100644
(file)
--- a/
plugins/dfsound/xa.c
+++ b/
plugins/dfsound/xa.c
@@
-152,8
+152,16
@@
INLINE void MixCD(int *SSumLR, int *RVB, int ns_to, int decode_pos)
}
spu.XALastVal = v;
}
}
spu.XALastVal = v;
}
- else
+ else if (spu.cdClearSamples > 0)
+ {
+ for(ns = 0; ns < ns_to; ns++)
+ {
+ spu.spuMem[cursor] = spu.spuMem[cursor + 0x400/2] = 0;
+ cursor = (cursor + 1) & 0x1ff;
+ }
+ spu.cdClearSamples -= ns_to;
spu.XALastVal = 0;
spu.XALastVal = 0;
+ }
}
////////////////////////////////////////////////////////////////////////
}
////////////////////////////////////////////////////////////////////////