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.

This commit is contained in:
OBattler
2025-07-09 07:35:36 +02:00
parent c648b5cff1
commit c99f4c0db8

View File

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