From d227bc54bb7b1683e6de3f93c7059e2c90b6ff94 Mon Sep 17 00:00:00 2001 From: win2kgamer <47463859+win2kgamer@users.noreply.github.com> Date: Sat, 27 Dec 2025 17:10:43 -0600 Subject: [PATCH] AD1816: Don't reset playback_pos when sample count is < 0, fixes playback glitches on Win3.1 drivers --- src/sound/snd_ad1816.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/sound/snd_ad1816.c b/src/sound/snd_ad1816.c index 2ba79fc4c..c989b9fad 100644 --- a/src/sound/snd_ad1816.c +++ b/src/sound/snd_ad1816.c @@ -337,7 +337,6 @@ ad1816_poll(void *priv) if (ad1816->count < 0) { ad1816->count = ad1816->iregs[8]; ad1816->regs[1] |= 0x80; - ad1816->playback_pos = 0; if (ad1816->iregs[1] & 0x8000) { ad1816_log(ad1816->log, "AD1816 Playback interrupt fired\n"); picint(1 << ad1816->cur_irq);