Re: [PD] That old -nogui/nosound problem on Linux ...

2012-04-12 Thread Chrissie Caulfield
Just for info, here's the little patch I'm using at the moment. Contrary 
to what I said in my last email it doesn't actually need -r rate to 
make it work, it fixes all uses of -nogui that I have tried :-)


Chrissie

diff --git a/src/s_main.c b/src/s_main.c
index 87e13c8..b95d2c3 100644
--- a/src/s_main.c
+++ b/src/s_main.c
@@ -1038,6 +1038,7 @@ static void sys_afterargparse(void)
 callback = sys_main_callback;
 if (sys_main_blocksize)
 blocksize = sys_main_blocksize;
+sys_dacsr = rate; // CC Hack to fix startup rate
 sys_set_audio_settings(naudioindev, audioindev, nchindev, chindev,
 naudiooutdev, audiooutdev, nchoutdev, choutdev, rate, advance, 
 callback, blocksize);
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] That old -nogui/nosound problem on Linux ...

2012-04-11 Thread Ingo
I have had a similar problem when upgrading from Hardy to Lucid / Natty.
In my case it was [susloop] that didn't work anymore with the -nogui flag.

I wrote an abstraction to do the same thing and my patch was working again.
It looks like some objects need updates to work with a newer OS and -nogui.

Ingo



 On Apr 10, 2012, at 11:11 AM, Chrissie Caulfield wrote:
 
  Hi all,
 
  I've been scouring the lists for a solution to this but none of them
 seem to work for me. Almost all non-trivial patches produce no sound with
 the -nogui flag, even with the delayed startup or the workaround_loader.pd
 that was posted here some time ago.
 
 
  I know very little about the pd code but I'm a competent C professional
 programmer and really want to fix this. Does anyone have any ideas where I
 might start to look or is it still 'voodoo'?  ;-)
 
  I'm using pd-extended from git  externals from svn, checked out this
 morning.
 
  I've managed to make this trivial patch that reproduces the problem (and
 includes the startup delay). I don't know why polygate~ does show the
 problem where hip~ and friends don't but I'm hoping it's a clue!
 
  So, does anyone have any (even vague) ideas of where to start before I
 start randomly digging?
 
  Chrissie


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] That old -nogui/nosound problem on Linux ...

2012-04-11 Thread Claude Heiland-Allen

On 10/04/12 16:11, Chrissie Caulfield wrote:

I don't know why polygate~ does show the
problem where hip~ and friends don't but I'm hoping it's a clue!

So, does anyone have any (even vague) ideas of where to start before I
start randomly digging?


Vague guess, might be wrong:

I think the bug is that pd -nogui loads (and possibly also loadbangs) 
the patches specified on the commandline before it initialises the 
samplerate~ and block~ settings.


polygate~ (or other broken dsp externals) are probably getting the 
samplerate~ or block~ settings before pd has fully initialised them. 
(eg: object gets samplerate in the object's 'new' method)


hip~ and friends work with various workarounds probably because they 
re-get the samplerate~ or block~ settings when the dsp graph is 
resorted.  (eg: object gets samplerate in the object's 'dsp' method)


polygate~ (or other broken dsp externals) are possibly not re-getting 
the samplerate~ or block~ settings when the dsp graph is resorted.



This suggests a possible other workaround that combines two techniques:

loader.pd:

[loadbang]
 |
[delay 10] delay a bit because Pd has a bug
 | \
 | [; pd dsp 1(turn on dsp to initialize things
 |
[delay 10]
 | \
 | [; pd dsp 0(turn off dsp in case it slows down loading
 |
[delay 10]
 |
[; pd open main.pd .(  load the main patch (syntax not tested...)


main.pd:

your normal patch, feel free to [loadbang]--[; pd dsp 1] as usual, if it 
doesn't work after all that fuss then I'm out of ideas.



Of course, even if the combo workaround works, it's still just a hack 
and pd still has a real bug that needs fixing, and the externals in 
question might have real bugs that need fixing too.  But it'd provide a 
further clue.



Claude

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] That old -nogui/nosound problem on Linux ...

2012-04-10 Thread Hans-Christoph Steiner

Hey Chrissie,

That would be awesome if you fixed it!  Its been discussed before, perhaps on 
pd-dev.  I think matju once outlined what the cause was, but I can't remember 
specifics.

.hc

On Apr 10, 2012, at 11:11 AM, Chrissie Caulfield wrote:

 Hi all,
 
 I've been scouring the lists for a solution to this but none of them seem to 
 work for me. Almost all non-trivial patches produce no sound with the -nogui 
 flag, even with the delayed startup or the workaround_loader.pd that was 
 posted here some time ago.
 
 I know very little about the pd code but I'm a competent C professional 
 programmer and really want to fix this. Does anyone have any ideas where I 
 might start to look or is it still 'voodoo'?  ;-)
 
 I'm using pd-extended from git  externals from svn, checked out this morning.
 
 I've managed to make this trivial patch that reproduces the problem (and 
 includes the startup delay). I don't know why polygate~ does show the problem 
 where hip~ and friends don't but I'm hoping it's a clue!
 
 So, does anyone have any (even vague) ideas of where to start before I start 
 randomly digging?
 
 Chrissie
 passthrough.pd___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list





We have nothing to fear from love and commitment. - New York Senator Diane 
Savino, trying to convince the NY Senate to pass a gay marriage bill


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list