From 4a05094c9a009707674c079c0481eaf8e1f8490f Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 8 Oct 2011 17:22:41 +0000 Subject: converted float to t_float to support double-precision Pd, creb still needs to separate t_float and t_sample tho svn path=/trunk/externals/creb/; revision=15546 --- modules/resofilt~.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'modules/resofilt~.c') diff --git a/modules/resofilt~.c b/modules/resofilt~.c index 0227dfc..09f1a72 100644 --- a/modules/resofilt~.c +++ b/modules/resofilt~.c @@ -69,13 +69,13 @@ static t_int *resofilt_perform_fourpole(t_int *w) t_resofiltctl *ctl = (t_resofiltctl *)(w[1]); t_int n = (t_int)(w[2]); - t_float *in = (float *)(w[3]); - t_float *freq = (float *)(w[4]); - t_float *reso = (float *)(w[5]); - t_float *out = (float *)(w[6]); + t_float *in = (t_float *)(w[3]); + t_float *freq = (t_float *)(w[4]); + t_float *reso = (t_float *)(w[5]); + t_float *out = (t_float *)(w[6]); int i; - t_float inv_n = 1.0f / ((float)n); + t_float inv_n = 1.0f / ((t_float)n); t_float inv_sr = 1.0f / sys_getsr(); t_float phasor[2], phasor_rot[2]; @@ -212,13 +212,13 @@ static t_int *resofilt_perform_threepole(t_int *w) t_resofiltctl *ctl = (t_resofiltctl *)(w[1]); t_int n = (t_int)(w[2]); - t_float *in = (float *)(w[3]); - t_float *freq = (float *)(w[4]); - t_float *reso = (float *)(w[5]); - t_float *out = (float *)(w[6]); + t_float *in = (t_float *)(w[3]); + t_float *freq = (t_float *)(w[4]); + t_float *reso = (t_float *)(w[5]); + t_float *out = (t_float *)(w[6]); int i; - t_float inv_n = 1.0f / ((float)n); + t_float inv_n = 1.0f / ((t_float)n); t_float inv_sr = 1.0f / sys_getsr(); t_float phasor[2], phasor_rot[2]; -- cgit v1.2.1