aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/dumpOSC-help.pd7
-rw-r--r--src/dumpOSC.c6
2 files changed, 9 insertions, 4 deletions
diff --git a/doc/dumpOSC-help.pd b/doc/dumpOSC-help.pd
index 30b57a4..ac1ec7a 100644
--- a/doc/dumpOSC-help.pd
+++ b/doc/dumpOSC-help.pd
@@ -1,10 +1,11 @@
-#N canvas 485 432 617 212 12;
+#N canvas 53 212 477 223 12;
#X obj 17 105 print rcvOSC;
#X obj 17 53 dumpOSC 9999;
#X obj 45 78 s rcvOSC;
#X text 15 7 dumpOSC listens on specified port / UDP \, outputs everything
received on its only outlet. seems to be pretty stable.;
-#X obj 463 163 OSC;
-#X text 194 163 for more info \, get help on:;
+#X text 130 52 one argument: portnumber;
+#X text 130 72 two arguments: castgroup portnumber;
+#X text 76 164 [dumpOSC] needs at least one argument to function;
#X connect 1 0 0 0;
#X connect 1 0 2 0;
diff --git a/src/dumpOSC.c b/src/dumpOSC.c
index 09f4e76..babc860 100644
--- a/src/dumpOSC.c
+++ b/src/dumpOSC.c
@@ -282,7 +282,11 @@ static void *dumpOSC_new(t_symbol *compatflag,
return NULL;
}
- else return NULL;
+ else {
+ error("[dumpOSC] needs at least one argument to function");
+ return NULL;
+ }
+
//x->x_b = binbuf_new();
//x->x_outat = binbuf_getvec(x->x_b);