mirror of
https://github.com/trudnai/Steve2.git
synced 2024-06-13 09:29:36 +00:00
Even better sound on bothe Wavy Navy and Xonix and even Hard Hat Mack
This commit is contained in:
parent
c15aae3764
commit
2e2279cc10
|
@ -372,10 +372,10 @@ void spkr_toggle_edge ( int level_max, const float initial_edge, const float fad
|
|||
float dumping = spkr_level - level_max;
|
||||
dumping *= initial_edge;
|
||||
|
||||
float ema_len = 15;
|
||||
float ema_len = 7;
|
||||
|
||||
if ( idx_diff <= SPKR_SAMPLE_PWM_THRESHOLD ) {
|
||||
ema_len = 41;
|
||||
ema_len = 21;
|
||||
}
|
||||
|
||||
spkr_level = spkr_samples[ spkr_sample_idx ];
|
||||
|
@ -396,10 +396,10 @@ void spkr_toggle_edge ( int level_max, const float initial_edge, const float fad
|
|||
}
|
||||
|
||||
|
||||
float SPKR_FADE_LEADING_EDGE = 0.32;
|
||||
float SPKR_FADE_TRAILING_EDGE = 0.32;
|
||||
float SPKR_INITIAL_LEADING_EDGE = 0.32; // leading edge should be pretty steep to get sharp sound plus to avoid Wavy Navy high pitch sound
|
||||
float SPKR_INITIAL_TRAILING_EDGE = 0.32; // need a bit of slope to get Xonix sound good
|
||||
float SPKR_FADE_LEADING_EDGE = 0.90;
|
||||
float SPKR_FADE_TRAILING_EDGE = 0.90;
|
||||
float SPKR_INITIAL_LEADING_EDGE = 0.64; // leading edge should be pretty steep to get sharp sound plus to avoid Wavy Navy high pitch sound
|
||||
float SPKR_INITIAL_TRAILING_EDGE = 0.64; // need a bit of slope to get Xonix sound good
|
||||
|
||||
|
||||
void spkr_toggle() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user