aboutsummaryrefslogtreecommitdiff
path: root/src/paramRoute.h
diff options
context:
space:
mode:
authorThomas O Fredericks <mrtof@users.sourceforge.net>2009-10-26 21:11:49 +0000
committerThomas O Fredericks <mrtof@users.sourceforge.net>2009-10-26 21:11:49 +0000
commit71bb1c90837f8114a6fc962b1afcf074e2e17e63 (patch)
tree136de37d07aae76f16823982652e4a86dafb45c8 /src/paramRoute.h
parent7541b9f1ba232dce4aceb41115c17292bd7298f4 (diff)
Added ifdefs to change the method of sending parameters
svn path=/trunk/externals/tof/; revision=12681
Diffstat (limited to 'src/paramRoute.h')
-rw-r--r--src/paramRoute.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/paramRoute.h b/src/paramRoute.h
index c336367..5d94e30 100644
--- a/src/paramRoute.h
+++ b/src/paramRoute.h
@@ -18,16 +18,15 @@ typedef struct _paramRoute
static void paramRoute_anything(t_paramRoute *x, t_symbol *s, int ac, t_atom *av) {
-
+
+ #ifndef USEBINDINGS
t_param* p = get_param_list(x->root);
-
+ #endif
if (ac) {
- if ( p != NULL && s->s_name[0] == '/' && strlen(s->s_name) > 1) {
-
-
-
-
+
+ if ( s->s_name[0] == '/' && strlen(s->s_name) > 1) {
+
if (x->previousSymbol != s) {
param_buf_temp_a[0] = '\0';
#ifdef LOCAL
@@ -43,15 +42,19 @@ static void paramRoute_anything(t_paramRoute *x, t_symbol *s, int ac, t_atom *av
#endif
x->previousSymbol = s;
}
-
+ #ifdef USEBINDINGS
+ if (x->target->s_thing) {
+ pd_forwardmess(x->target->s_thing, ac, av);
+ #else
while (p && p->path != x->target) p=p->next;
if (p) {
pd_forwardmess(p->x, ac, av);
+ #endif
} else {
outlet_anything(x->x_outlet,s,ac,av);
}
-
+
} else {
outlet_anything(x->x_outlet,s,ac,av);