diff --git a/pd/extra/loop~/loop~.c b/pd/extra/loop~/loop~.c index 2fc3193e3d595b5ed0b0e24839ca42b74ac62d3f..72938fd7597bc8293ee46a701d3b02f1903ead80 100644 --- a/pd/extra/loop~/loop~.c +++ b/pd/extra/loop~/loop~.c @@ -14,7 +14,8 @@ This file is downloadable from http://www.crca.ucsd.edu/~msp . #ifdef PD #include "m_pd.h" #else -#define t_sample float +typedef float t_float; +typedef float t_sample; #endif @@ -96,7 +97,7 @@ static void loopctl_init(t_loopctl *x) x->l_phase = 0; } -static void loopctl_set(t_loopctl *x, float val) +static void loopctl_set(t_loopctl *x, t_float val) { if (val < 0 || val > 1) val = 0; diff --git a/pd/extra/lrshift~/lrshift~.c b/pd/extra/lrshift~/lrshift~.c index b3c90ff6b407fd8ad01282957774a6581f3cbd3e..19dcb93d5c07686f20372058004c275b1b7d0718 100644 --- a/pd/extra/lrshift~/lrshift~.c +++ b/pd/extra/lrshift~/lrshift~.c @@ -8,7 +8,7 @@ typedef struct _lrshift_tilde { t_object x_obj; int x_n; - float x_f; + t_float x_f; } t_lrshift_tilde; static t_int *leftshift_perform(t_int *w)