From c99f4c0db8ab5547b25651022fe30aa2b068fc92 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 9 Jul 2025 07:35:36 +0200 Subject: [PATCH] PC Speaker: assume 256 counts needed for the speaker to go from off to on instead of 64, improves PC speaker quality and fixes speech in Three Stooges, fixes #4763. --- src/sound/snd_speaker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound/snd_speaker.c b/src/sound/snd_speaker.c index 0537cd09a..063554875 100644 --- a/src/sound/snd_speaker.c +++ b/src/sound/snd_speaker.c @@ -56,7 +56,7 @@ speaker_update(void) int32_t val; double amplitude; - amplitude = ((speaker_count / 64.0) * 10240.0) - 5120.0; + amplitude = ((speaker_count / 256.0) * 10240.0) - 5120.0; if (amplitude > 5120.0) amplitude = 5120.0;