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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user