From e3f1e04c2ce061351fb6d17aa05c07b2cfea80d4 Mon Sep 17 00:00:00 2001 From: win2kgamer <47463859+win2kgamer@users.noreply.github.com> Date: Fri, 30 Jan 2026 21:23:16 -0600 Subject: [PATCH] Sensation audio: Prevent clipping in the MMA output, fixes distorted audio in Phone Center and SB emulation under Win3.1 --- src/sound/snd_sensation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound/snd_sensation.c b/src/sound/snd_sensation.c index 88866f563..f5e6fc1a1 100644 --- a/src/sound/snd_sensation.c +++ b/src/sound/snd_sensation.c @@ -966,7 +966,7 @@ sensation_mma_poll(sensation_t *dev, int channel) if (dev->sensation_mma_fifo_start[channel] != dev->sensation_mma_fifo_end[channel]) { switch (dev->sensation_mma_regs[channel][0xc] & 0x60) { case 0x00: /*8-bit*/ - dat = dev->sensation_mma_fifo[channel][dev->sensation_mma_fifo_start[channel]] * 256; + dat = dev->sensation_mma_fifo[channel][dev->sensation_mma_fifo_start[channel]] * 128; dev->sensation_mma_out[channel] = dat; dev->sensation_mma_fifo_start[channel] = (dev->sensation_mma_fifo_start[channel] + 1) & 255; break;