Sensation audio: Prevent clipping in the MMA output, fixes distorted audio in Phone Center and SB emulation under Win3.1

This commit is contained in:
win2kgamer
2026-01-30 21:23:16 -06:00
parent be38bee2c6
commit e3f1e04c2c

View File

@@ -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;