diff options
Diffstat (limited to 'src/iemlib1')
-rw-r--r-- | src/iemlib1/prvu~.c | 10 | ||||
-rw-r--r-- | src/iemlib1/rvu~.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/iemlib1/prvu~.c b/src/iemlib1/prvu~.c index 17fe143..aed7c53 100644 --- a/src/iemlib1/prvu~.c +++ b/src/iemlib1/prvu~.c @@ -114,17 +114,17 @@ static t_int *prvu_tilde_perform(t_int *w) t_float *in = (t_float *)(w[1]); t_prvu_tilde *x = (t_prvu_tilde *)(w[2]); int n = (int)(w[3]); - t_float peak = x->x_cur_peak, pow, sum=x->x_sum_rms; + t_float peak = x->x_cur_peak, power, sum=x->x_sum_rms; int i; if(x->x_started) { for(i=0; i<n; i++) { - pow = in[i]*in[i]; - if(pow > peak) - peak = pow; - sum += pow; + power = in[i]*in[i]; + if(power > peak) + peak = power; + sum += power; } x->x_cur_peak = peak; x->x_sum_rms = sum; diff --git a/src/iemlib1/rvu~.c b/src/iemlib1/rvu~.c index 95a874a..21638d5 100644 --- a/src/iemlib1/rvu~.c +++ b/src/iemlib1/rvu~.c @@ -84,7 +84,7 @@ static t_int *rvu_tilde_perform(t_int *w) t_float *in = (t_float *)(w[1]); t_rvu_tilde *x = (t_rvu_tilde *)(w[2]); int n = (int)(w[3]); - t_float pow, sum=x->x_sum_rms; + t_float sum=x->x_sum_rms; int i; if(x->x_started) |