Hi,

Roman Haefeli wrote:
> So having a [switch~] would solve all the -nogui initialization
> troubles? That is valuable to know. Thanks.

I am afraid I cannot confirm this, as illustrated in the attached
example. This is the same patch I posted yesterday, extended by a
loadbanged [switch~].

Or am I missing something here? It would obviously be really cool to
have a non-recompiling workaround for this.

By the way, it also does not help to delay the turning on of the
[switch~], which I tried - knowing that loadbanged [;pd dsp 1( messages
cause trouble under -nogui as well.

best,
flo.H
#N canvas 2 0 555 550 10;
#X obj 140 381 dac~;
#X obj 147 140 loadbang;
#X obj 140 175 metro 1000;
#X obj -23 386 loadbang;
#X obj -23 413 del 1000;
#X obj 61 173 osc~ 220;
#X obj 69 273 *~;
#X msg 88 222 1 \, 0 100;
#X obj 88 247 line~;
#X text 235 368 Florian Hollerweger \, 2010;
#X obj 140 352 *~;
#X obj 213 316 dbtorms;
#X obj 213 268 loadbang;
#X msg 213 292 80;
#X obj 170 242 delread~ line 350;
#X obj -5 354 delwrite~ line 580;
#X text -9 106 Tested with Pd 0.41.4 under Debian GNU/Linux;
#X text 257 294 Master volume;
#X obj 169 354 *~;
#X msg 172 215 500;
#X obj 63 499 switch~;
#X text 45 408 <- HACK: [del 1000] also required due to audio initialization
problems with -nogui;
#X text -10 8 -nogui bug: This patch creates a test signal on the left
channel once a second \, which is delayed through [delwrite~] and [delread~]
and then repeated on the right channel 500ms later. But when started
with -nogui \, the delay line is initialized before the samplerate
is set \, resulting in broken audio output.;
#X msg -23 441 \; pd dsp 1;
#X obj 63 448 loadbang;
#X obj 63 475 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 121 495 <- This does not seem to solve the -nogui audio init
problems either (also not if [switch~] is turned on later);
#X connect 1 0 2 0;
#X connect 1 0 19 0;
#X connect 2 0 7 0;
#X connect 3 0 4 0;
#X connect 4 0 23 0;
#X connect 5 0 6 0;
#X connect 6 0 15 0;
#X connect 6 0 10 0;
#X connect 7 0 8 0;
#X connect 8 0 6 1;
#X connect 10 0 0 0;
#X connect 11 0 10 1;
#X connect 11 0 18 1;
#X connect 12 0 13 0;
#X connect 13 0 11 0;
#X connect 14 0 18 0;
#X connect 18 0 0 1;
#X connect 19 0 14 0;
#X connect 24 0 25 0;
#X connect 25 0 20 0;
_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to