From 2e5309bfa31d89940e2ba3c68ada043e5070153d Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Fri, 1 Nov 2024 14:31:59 +0100 Subject: [PATCH] aica: don't batch samples Batching 32 samples and arm runs causes audio glitches with some wince games. So run aica 44100 times/sec instead. Issue #1240 Issue #1605 --- core/hw/aica/aica.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hw/aica/aica.cpp b/core/hw/aica/aica.cpp index fad07fd28f..18b440f3b1 100644 --- a/core/hw/aica/aica.cpp +++ b/core/hw/aica/aica.cpp @@ -82,11 +82,11 @@ static bool UpdateSh4Ints() AicaTimer timers[3]; int aica_schid = -1; -const int AICA_TICK = 145125; // 44.1 KHz / 32 +constexpr int AICA_TICK = 4535; // 44.1 KHz static int AicaUpdate(int tag, int cycles, int jitter, void *arg) { - arm::run(32); + arm::run(1); return AICA_TICK; }