diff options
-rw-r--r-- | src/OSC.c | 3 | ||||
-rw-r--r-- | src/OSCroute.c | 3 | ||||
-rw-r--r-- | src/dumpOSC.c | 5 | ||||
-rw-r--r-- | src/sendOSC.c | 2 |
4 files changed, 11 insertions, 2 deletions
@@ -41,6 +41,7 @@ static t_class* OSC_class; static void* OSC_new(t_symbol* s) {
t_OSC *x = (t_OSC *)pd_new(OSC_class);
+ error("OSCx is deprecated! consider switching to mrpeach's osc & net objects");
return (x);
}
@@ -66,4 +67,6 @@ OSC_API void OSC_setup(void) { post("O : Open Sound Control 4 PD, http://www.cnmat.berkeley.edu/OSC");
post(" S : original code by matt wright, pd hakcs cxc, Win32-port raf@interaccess.com");
post(" C: ver: "VERSION ", compiled: "__DATE__ " -- adapted by piotr@majdak.com");
+
+ error("OSCx is deprecated - ask IOhannes m zmoelnig why...");
}
diff --git a/src/OSCroute.c b/src/OSCroute.c index 898aa44..5143934 100644 --- a/src/OSCroute.c +++ b/src/OSCroute.c @@ -170,7 +170,8 @@ void *OSCroute_new(t_symbol *s, int argc, t_atom *argv) int i; //{{raf}} n not used
// EnterCallback();
-
+ error("[OSCroute]: OSCx is deprecated! consider switching to mrpeach's [routeOSC]");
+
if (argc > MAX_NUM) {
post("* OSC-route: too many arguments: %ld (max %ld)", argc, MAX_NUM);
// ExitCallback();
diff --git a/src/dumpOSC.c b/src/dumpOSC.c index babc860..7d6827d 100644 --- a/src/dumpOSC.c +++ b/src/dumpOSC.c @@ -263,6 +263,9 @@ static void *dumpOSC_new(t_symbol *compatflag, int udp = 1;
t_symbol *castgroup=NULL;
+ error("[dumpOSC]: OSCx is deprecated! consider switching to mrpeach's [unpackOSC] and [udpreceive]");
+
+
if (argc == 1) {
if (argv[0].a_type==A_FLOAT)
portno = (int)argv[0].a_w.w_float;
@@ -283,7 +286,7 @@ static void *dumpOSC_new(t_symbol *compatflag, }
else {
- error("[dumpOSC] needs at least one argument to function");
+ error("[dumpOSC] needs at least one argument (port number) to function");
return NULL;
}
diff --git a/src/sendOSC.c b/src/sendOSC.c index 59e9335..b48d205 100644 --- a/src/sendOSC.c +++ b/src/sendOSC.c @@ -127,6 +127,8 @@ void SendData(void *htmsocket, int size, char *data); static void *sendOSC_new(t_floatarg udpflag)
{
t_sendOSC *x = (t_sendOSC *)pd_new(sendOSC_class);
+ error("[sendOSC]: OSCx is deprecated! consider switching to mrpeach's [packOSC] and [udpsend]");
+
outlet_new(&x->x_obj, &s_float);
x->x_htmsocket = 0; // {{raf}}
// set udp
|