From dc185c66b8b0648fe068fdbeaedabc0e24cb4e4b Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 28 May 2008 10:49:34 +0000 Subject: changed classname to akawiiremote so that I don't have to deal with the hexloader svn path=/trunk/externals/io/; revision=9931 --- aka.wiiremote/aka.wiiremote-help.pd | 33 ++++++++++++++++----------------- aka.wiiremote/aka.wiiremote.c | 8 ++++---- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/aka.wiiremote/aka.wiiremote-help.pd b/aka.wiiremote/aka.wiiremote-help.pd index 83def15..c3ae89a 100644 --- a/aka.wiiremote/aka.wiiremote-help.pd +++ b/aka.wiiremote/aka.wiiremote-help.pd @@ -49,33 +49,32 @@ blinking once its connected; #X obj 631 536 dac~; #X obj 632 408 pddp/dsp; #X obj 640 500 osc~ 100; -#X obj 154 513 aka.wiiremote; -#X obj 303 388 aka.wiiremote; -#X connect 0 0 35 0; -#X connect 1 0 35 0; +#X obj 303 388 akawiiremote; +#X connect 0 0 34 0; +#X connect 1 0 34 0; #X connect 2 0 22 0; #X connect 3 0 21 0; -#X connect 4 0 35 0; +#X connect 4 0 34 0; #X connect 5 0 4 0; -#X connect 6 0 35 0; +#X connect 6 0 34 0; #X connect 13 0 19 0; #X connect 13 1 17 0; -#X connect 14 0 35 0; -#X connect 15 0 35 0; -#X connect 16 0 35 0; +#X connect 14 0 34 0; +#X connect 15 0 34 0; +#X connect 16 0 34 0; #X connect 19 0 12 0; #X connect 19 1 11 0; #X connect 19 2 20 0; -#X connect 21 0 35 0; -#X connect 22 0 35 0; +#X connect 21 0 34 0; +#X connect 22 0 34 0; #X connect 23 0 24 0; -#X connect 24 0 35 0; +#X connect 24 0 34 0; #X connect 25 0 26 0; -#X connect 26 0 35 0; +#X connect 26 0 34 0; #X connect 27 0 28 0; -#X connect 28 0 35 0; -#X connect 30 0 35 0; +#X connect 28 0 34 0; +#X connect 30 0 34 0; #X connect 33 0 31 0; #X connect 33 0 31 1; -#X connect 35 0 18 0; -#X connect 35 1 13 0; +#X connect 34 0 18 0; +#X connect 34 1 13 0; diff --git a/aka.wiiremote/aka.wiiremote.c b/aka.wiiremote/aka.wiiremote.c index d8b12cb..0831f44 100644 --- a/aka.wiiremote/aka.wiiremote.c +++ b/aka.wiiremote/aka.wiiremote.c @@ -81,7 +81,7 @@ char nunchukStr[] = "nunchuk"; char classicStr[] = "classic"; #ifdef PD -void setup_aka0x2ewiiremote() +void akawiiremote_setup() #else /* Max */ void main() #endif /* PD */ @@ -108,7 +108,7 @@ void main() #ifdef PD post("\tPd port by Hans-Christoph Steiner"); - akawiiremote_class = class_new(gensym("aka.wiiremote"), + akawiiremote_class = class_new(gensym("akawiiremote"), (t_newmethod)akawiiremote_new, (t_method)akawiiremote_free, sizeof(t_akawiiremote), @@ -597,10 +597,10 @@ void *akawiiremote_new(t_symbol *s, short ac, t_atom *av) atom_string(av, x->address, MAXPDSTRING-1); IOReturn result = kIOReturnSuccess; - mach_port_t masterPort = NULL; + mach_port_t masterPort = (mach_port_t) NULL; result = IOMasterPort (bootstrap_port, &masterPort); if (kIOReturnSuccess != result) - pd_error("IOMasterPort error with bootstrap_port, error %d", result); + pd_error(x, "[akawiiremote] IOMasterPort error with bootstrap_port, error %d", result); else { // Create a notification port and add its run loop event source to our run loop -- cgit v1.2.1