aboutsummaryrefslogtreecommitdiff
path: root/modules/xfm~.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-08 17:22:41 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-08 17:22:41 +0000
commit4a05094c9a009707674c079c0481eaf8e1f8490f (patch)
treed63533d6b056451337017faa6deb69ea55788c2e /modules/xfm~.c
parentc39d22e4bd9c3b06c4199ea59d0a7faa51401f7f (diff)
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
Diffstat (limited to 'modules/xfm~.c')
-rw-r--r--modules/xfm~.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/xfm~.c b/modules/xfm~.c
index 63c79ab..f66831d 100644
--- a/modules/xfm~.c
+++ b/modules/xfm~.c
@@ -88,8 +88,8 @@ void xfm_type(t_xfm *x, t_float f)
static inline t_float xfm_sat(t_float x)
{
- const float max = 1;
- const float min = -1;
+ const t_float max = 1;
+ const t_float min = -1;
x = (x > max) ? (max) : (x);
x = (x < min) ? (min) : (x);
@@ -101,12 +101,12 @@ static t_int *xfm_perform(t_int *w)
{
- t_float *inA = (float *)(w[3]);
- t_float *inB = (float *)(w[4]);
- t_float *fbA = (float *)(w[5]);
- t_float *fbB = (float *)(w[6]);
- t_float *outA = (float *)(w[7]);
- t_float *outB = (float *)(w[8]);
+ t_float *inA = (t_float *)(w[3]);
+ t_float *inB = (t_float *)(w[4]);
+ t_float *fbA = (t_float *)(w[5]);
+ t_float *fbB = (t_float *)(w[6]);
+ t_float *outA = (t_float *)(w[7]);
+ t_float *outB = (t_float *)(w[8]);
t_xfmctl *ctl = (t_xfmctl *)(w[1]);
t_int n = (t_int)(w[2]);
//t_float *tab = ctl->c_sintab;