mirror of
https://github.com/trudnai/Steve2.git
synced 2026-01-23 04:16:34 +00:00
EMA inlined
This commit is contained in:
@@ -393,7 +393,7 @@ void spkr_toggle_edge_old ( const int level_max, const float initial_edge, const
|
||||
}
|
||||
|
||||
|
||||
int ema( int val, int prev ) {
|
||||
INLINE int ema( int val, int prev ) {
|
||||
static const float ema_sensitivity = 2;
|
||||
static const float ema_len = 14;
|
||||
static const float m = ema_sensitivity / ema_len;
|
||||
|
||||
Reference in New Issue
Block a user