From 353e70855e34a7da9800782048268bc6a52d10e4 Mon Sep 17 00:00:00 2001 From: Martin Peach Date: Thu, 14 Jan 2010 20:24:32 +0000 Subject: Always send in network byte order for all architectures. UDP receiving socket doesn't need to be non-blocking (I think...). Cleaned up help patch. svn path=/trunk/externals/mrpeach/; revision=12998 --- net/udpsend~-help.pd | 51 +++++++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 24 deletions(-) (limited to 'net/udpsend~-help.pd') diff --git a/net/udpsend~-help.pd b/net/udpsend~-help.pd index e97aad8..f8bc684 100644 --- a/net/udpsend~-help.pd +++ b/net/udpsend~-help.pd @@ -1,4 +1,4 @@ -#N canvas 308 59 838 769 10; +#N canvas 415 49 838 769 10; #X obj -178 225 osc~ 440; #X msg -398 60 disconnect; #X msg -353 105 format float; @@ -10,7 +10,7 @@ #X msg -419 39 connect 255.255.255.255 8008; #X obj 34 650 print udpreceive~; #X obj 224 369 print udpsend~; -#X obj -178 320 tgl 15 0 empty empty empty 17 7 0 10 -4034 -1 -1 1 +#X obj -178 320 tgl 15 0 empty empty empty 17 7 0 10 -4034 -1 -1 0 1; #X symbolatom -97 435 10 0 0 0 - - -; #X floatatom -44 369 5 0 0 0 - - -; @@ -65,12 +65,11 @@ per sample); #X floatatom 170 430 9 0 0 0 - - -; #X text 70 430 dsp vector size:; #X msg -258 200 channels \$1; -#X obj -412 185 hradio 15 1 0 8 empty empty empty 0 -8 0 10 -4034 -1 --1 1; +#X obj -412 185 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -4034 -1 +-1 2; #X obj -178 297 udpsend~ 2 512; #X text -88 296 sends 2 dsp-channels using 512-sample blocks; #X obj -397 541 udpreceive~ 8008 2 512; -#X text -258 542 receives 2 channels on port 8808; #X obj -398 602 dac~ 1 2; #X text 68 448 (blocksize must be a multiple of this); #X text -160 318 1 = transmitting; @@ -106,6 +105,9 @@ if nothing is receiving.; #X text -299 18 connect to and begin transmitting ; #X text -455 294 [udpreceive~] and [udpsend~]; +#X text -256 540 receives 2 channels on port 8008 Same blocksize as +udpsend~; +#X floatatom -412 216 5 0 0 0 - - -; #X connect 0 0 54 0; #X connect 1 0 62 0; #X connect 2 0 62 0; @@ -125,7 +127,7 @@ if nothing is receiving.; #X connect 52 3 50 0; #X connect 52 4 51 0; #X connect 54 0 62 0; -#X connect 55 0 71 0; +#X connect 55 0 70 0; #X connect 57 0 16 0; #X connect 57 1 12 0; #X connect 57 2 13 0; @@ -135,24 +137,25 @@ if nothing is receiving.; #X connect 57 6 9 0; #X connect 60 0 62 0; #X connect 61 0 60 0; +#X connect 61 0 88 0; #X connect 62 0 10 0; #X connect 62 1 57 0; -#X connect 64 0 66 0; -#X connect 64 1 66 1; -#X connect 64 2 74 0; +#X connect 64 0 65 0; +#X connect 64 1 65 1; +#X connect 64 2 73 0; #X connect 64 3 52 0; -#X connect 69 0 70 0; -#X connect 70 0 62 1; -#X connect 71 0 54 1; -#X connect 71 0 70 1; -#X connect 74 0 28 0; -#X connect 74 1 25 0; -#X connect 74 2 26 0; -#X connect 74 3 27 0; -#X connect 74 4 33 0; -#X connect 74 5 34 0; -#X connect 74 6 35 0; -#X connect 74 7 36 0; -#X connect 74 8 75 0; -#X connect 74 9 8 0; -#X connect 83 0 64 0; +#X connect 68 0 69 0; +#X connect 69 0 62 1; +#X connect 70 0 54 1; +#X connect 70 0 69 1; +#X connect 73 0 28 0; +#X connect 73 1 25 0; +#X connect 73 2 26 0; +#X connect 73 3 27 0; +#X connect 73 4 33 0; +#X connect 73 5 34 0; +#X connect 73 6 35 0; +#X connect 73 7 36 0; +#X connect 73 8 74 0; +#X connect 73 9 8 0; +#X connect 82 0 64 0; -- cgit v1.2.1