aboutsummaryrefslogtreecommitdiff
path: root/signal
diff options
context:
space:
mode:
Diffstat (limited to 'signal')
-rwxr-xr-xsignal/streamin~.c2
-rwxr-xr-xsignal/streamout~.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/signal/streamin~.c b/signal/streamin~.c
index 54ab283..824543e 100755
--- a/signal/streamin~.c
+++ b/signal/streamin~.c
@@ -360,6 +360,8 @@ static void *streamin_new(t_floatarg fportno, t_floatarg prot)
t_streamin *x;
int i;
+ if (fportno == 0) fportno = 4267;
+
post("port %f",fportno);
x = (t_streamin *)pd_new(streamin_class);
diff --git a/signal/streamout~.c b/signal/streamout~.c
index 6e76b36..f691860 100755
--- a/signal/streamout~.c
+++ b/signal/streamout~.c
@@ -101,7 +101,8 @@ static void streamout_connect(t_streamout *x, t_symbol *hostname, t_floatarg fpo
int sockfd;
int portno = fportno;
x->hostname = hostname;
- x->portno = (int) fportno;
+ if (!fportno) x->portno = 4267;
+ else x->portno = (int) fportno;
x->x_tag.count = 0;