From 0e1fc3e44bce5f31c0d5e7d84e5cd4c8b035cb18 Mon Sep 17 00:00:00 2001 From: tudnai Date: Mon, 25 May 2020 20:53:42 -0700 Subject: [PATCH] Adjusted edge curves, it gives us better sound, closer to original... --- src/dev/audio/speaker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dev/audio/speaker.c b/src/dev/audio/speaker.c index 14b0ef7..5795d98 100644 --- a/src/dev/audio/speaker.c +++ b/src/dev/audio/speaker.c @@ -161,7 +161,7 @@ void spkr_toggle() { // how smooth we want the speeker to decay, so we will hear no pops and crackles // 0.9 gives you a kind of saw wave at 1KHz (beep) // 0.7 is better, but Xonix gives you a bit distorted speech and Donkey Kong does not sound the same - fadeLevel *= 0.64; + fadeLevel *= 0.16; } spkr_level = SPKR_LEVEL_MIN; } @@ -178,7 +178,7 @@ void spkr_toggle() { // how smooth we want the speeker to decay, so we will hear no pops and crackles // 0.9 gives you a kind of saw wave at 1KHz (beep) // 0.7 is better, but Xonix gives you a bit distorted speech and Donkey Kong does not sound the same - fadeLevel *= 0.64; + fadeLevel *= 0.32; } spkr_level = SPKR_LEVEL_MAX; }