From 0805907f9130a9eb05b9c4a302756b8fad9258bb Mon Sep 17 00:00:00 2001 From: win2kgamer <47463859+win2kgamer@users.noreply.github.com> Date: Sat, 7 Feb 2026 21:54:33 -0600 Subject: [PATCH] PSSJ: Bit 4 of port C7/1E7 is reserved and not used for amplitude --- src/sound/snd_pssj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound/snd_pssj.c b/src/sound/snd_pssj.c index 7de8ec824..da141dafd 100644 --- a/src/sound/snd_pssj.c +++ b/src/sound/snd_pssj.c @@ -78,7 +78,7 @@ pssj_write(uint16_t port, uint8_t val, void *priv) break; case 3: pssj->freq = (pssj->freq & 0x0ff) | ((val & 0xf) << 8); - pssj->amplitude = val >> 4; + pssj->amplitude = (val & 0xef) >> 4; break; default: