Commit 485149e6 authored by Roman Haefeli's avatar Roman Haefeli
Browse files

jacktrip: fix garbling sound

Sometimes it happened that the sender was misaligned by one (Pd) block (=64 samples) which resulted
in garbling sound. It turns out re-setting dsp fixes it. Since it only happens at blocksizes > 64
it is not an issue in quacktrip, because it uses  hard-coded blocksize of 64
parent d9923198
#N canvas 470 191 1178 618 10;
#N canvas 450 175 1178 618 10;
#X declare -path iemnet;
#X obj 249 513 udpclient;
#X obj 249 482 r \$0.to.udp;
......@@ -586,7 +586,7 @@ to continuous stream;
#X connect 27 0 25 0;
#X restore 546 12 pd receiver;
#X f 30;
#N canvas 635 297 590 390 connection 0;
#N canvas 625 289 590 390 connection 0;
#X msg 119 228 disconnect;
#X obj 13 303 s \$0.to.udp;
#X obj 13 8 r \$0.on.off;
......@@ -714,7 +714,7 @@ to continuous stream;
#X restore 11 120 pd gui.stuff;
#X obj 271 3 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#N canvas 478 240 564 423 reblocked_input 0;
#N canvas 458 224 564 423 reblocked_input 0;
#X obj 11 164 bang~;
#X obj 386 52 r \$0.blocksize;
#X obj 386 75 * 2;
......@@ -826,7 +826,6 @@ _ _ _ _ _ _;
#X connect 14 0 3 0;
#X connect 17 0 1 0;
#X restore 546 269 pd start.when.ready;
#X obj 493 224 r \$0.clock;
#X obj 493 319 spigot;
#X msg 546 293 1;
#X obj 603 316 sel 0;
......@@ -850,7 +849,7 @@ _ _ _ _ _ _;
#X connect 5 0 3 0;
#X restore 524 486 pd frames;
#X obj 493 386 mod;
#N canvas 0 106 667 290 playback_from_queuebuffer 1;
#N canvas 0 106 667 290 playback_from_queuebuffer 0;
#X obj 8 259 outlet~;
#X obj 58 259 outlet~;
#X obj 108 259 outlet~;
......@@ -1351,19 +1350,16 @@ _ _ _ _ _;
#X obj 160 120 * 1000;
#X obj 161 151 /;
#X floatatom 161 181 5 0 0 0 - - -;
#X text 54 213 <- delay by one block;
#X text 73 230 why does it help?;
#X obj 297 245 spigot 0;
#X obj 306 326 spigot 0;
#X obj 306 348 print SEQ.PLAY;
#X obj 408 204 r \$0.DEBUG;
#X obj 13 228 pipe 1;
#X msg 160 74 65;
#X connect 0 0 2 0;
#X connect 2 0 3 0;
#X connect 2 1 4 1;
#X connect 3 0 15 0;
#X connect 4 0 35 0;
#X connect 4 0 9 0;
#X connect 6 0 22 0;
#X connect 8 0 7 0;
#X connect 9 0 1 0;
......@@ -1380,24 +1376,22 @@ _ _ _ _ _;
#X connect 15 1 16 0;
#X connect 16 0 17 0;
#X connect 17 0 18 0;
#X connect 17 0 31 0;
#X connect 17 0 29 0;
#X connect 20 0 21 0;
#X connect 22 1 10 1;
#X connect 22 2 14 0;
#X connect 22 3 32 0;
#X connect 23 0 36 0;
#X connect 22 3 30 0;
#X connect 23 0 33 0;
#X connect 24 0 26 0;
#X connect 24 1 25 0;
#X connect 25 0 27 1;
#X connect 26 0 27 0;
#X connect 27 0 28 0;
#X connect 27 0 35 1;
#X connect 31 0 19 0;
#X connect 32 0 33 0;
#X connect 34 0 31 1;
#X connect 34 0 32 1;
#X connect 35 0 9 0;
#X connect 36 0 24 0;
#X connect 29 0 19 0;
#X connect 30 0 31 0;
#X connect 32 0 29 1;
#X connect 32 0 30 1;
#X connect 33 0 24 0;
#X restore 493 431 pd check_queuestate;
#X obj 546 43 t a a a;
#X obj 585 64 s \$0.received;
......@@ -1564,16 +1558,22 @@ _ _ _ _ _;
#X obj 565 130 t b a;
#X text 731 25 payload;
#X text 550 27 seq;
#X obj 493 227 r \$0.clock;
#X obj 221 338 r \$0.connected;
#X obj 221 361 del 0;
#X msg 221 388 0 \, 1;
#X msg 221 411 dsp \$1;
#X obj 221 434 s pd;
#X connect 0 0 2 0;
#X connect 0 2 54 0;
#X connect 0 2 53 0;
#X connect 1 0 0 0;
#X connect 3 0 4 0;
#X connect 4 0 56 0;
#X connect 5 0 51 0;
#X connect 5 1 83 1;
#X connect 4 0 55 0;
#X connect 5 0 50 0;
#X connect 5 1 82 1;
#X connect 8 0 11 0;
#X connect 10 0 4 0;
#X connect 11 0 65 0;
#X connect 11 0 64 0;
#X connect 12 0 11 1;
#X connect 13 0 11 2;
#X connect 14 0 11 3;
......@@ -1581,55 +1581,59 @@ _ _ _ _ _;
#X connect 16 0 11 5;
#X connect 17 0 11 6;
#X connect 18 0 11 7;
#X connect 19 0 49 0;
#X connect 19 0 48 0;
#X connect 20 0 22 1;
#X connect 21 0 20 1;
#X connect 22 0 23 0;
#X connect 24 0 27 0;
#X connect 25 0 26 0;
#X connect 26 0 30 0;
#X connect 27 0 26 1;
#X connect 28 0 29 0;
#X connect 29 0 26 1;
#X connect 29 0 30 1;
#X connect 30 0 35 0;
#X connect 31 0 50 0;
#X connect 31 1 32 0;
#X connect 32 0 30 1;
#X connect 33 0 36 0;
#X connect 34 0 33 1;
#X connect 35 0 31 0;
#X connect 36 0 37 0;
#X connect 36 1 38 0;
#X connect 36 2 39 0;
#X connect 36 3 40 0;
#X connect 36 4 41 0;
#X connect 36 5 42 0;
#X connect 36 6 43 0;
#X connect 36 7 44 0;
#X connect 45 0 46 0;
#X connect 48 0 47 0;
#X connect 49 0 84 0;
#X connect 50 0 33 0;
#X connect 51 0 24 0;
#X connect 51 1 19 0;
#X connect 51 2 52 0;
#X connect 53 0 30 0;
#X connect 55 0 28 0;
#X connect 61 0 60 0;
#X connect 66 0 74 0;
#X connect 67 0 71 0;
#X connect 68 0 69 0;
#X connect 68 1 67 1;
#X connect 69 0 67 0;
#X connect 71 0 70 0;
#X connect 24 0 26 0;
#X connect 25 0 29 0;
#X connect 26 0 25 1;
#X connect 27 0 28 0;
#X connect 28 0 25 1;
#X connect 28 0 29 1;
#X connect 29 0 34 0;
#X connect 30 0 49 0;
#X connect 30 1 31 0;
#X connect 31 0 29 1;
#X connect 32 0 35 0;
#X connect 33 0 32 1;
#X connect 34 0 30 0;
#X connect 35 0 36 0;
#X connect 35 1 37 0;
#X connect 35 2 38 0;
#X connect 35 3 39 0;
#X connect 35 4 40 0;
#X connect 35 5 41 0;
#X connect 35 6 42 0;
#X connect 35 7 43 0;
#X connect 44 0 45 0;
#X connect 47 0 46 0;
#X connect 48 0 83 0;
#X connect 49 0 32 0;
#X connect 50 0 24 0;
#X connect 50 1 19 0;
#X connect 50 2 51 0;
#X connect 52 0 29 0;
#X connect 54 0 27 0;
#X connect 60 0 59 0;
#X connect 65 0 73 0;
#X connect 66 0 70 0;
#X connect 67 0 68 0;
#X connect 67 1 66 1;
#X connect 68 0 66 0;
#X connect 70 0 69 0;
#X connect 71 0 73 1;
#X connect 72 0 74 1;
#X connect 73 0 75 1;
#X connect 73 0 74 0;
#X connect 74 0 75 0;
#X connect 75 0 76 0;
#X connect 76 0 68 0;
#X connect 81 0 35 1;
#X connect 82 0 19 1;
#X connect 83 0 22 0;
#X connect 84 0 83 0;
#X connect 84 1 20 0;
#X connect 75 0 67 0;
#X connect 80 0 34 1;
#X connect 81 0 19 1;
#X connect 82 0 22 0;
#X connect 83 0 82 0;
#X connect 83 1 20 0;
#X connect 86 0 25 0;
#X connect 87 0 88 0;
#X connect 88 0 89 0;
#X connect 89 0 90 0;
#X connect 90 0 91 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment