Hiya,
I've been looking into the problem that starting pd with -nogui can
cause a lot of plugins to start with a zero sample-rate and therefore
produce no sound.
Here's my tentative patch for this. It's very small and though it could
be regarded as over-simplistic, it does fix the problem that's been
causing me a lot of grief for a while now.
So, I tentatively offer this as my fix. If you think it's not enough and
needs something more complex then please say what you think is wrong and
I'll keep digging :)
Chrissie
diff --git a/src/s_audio.c b/src/s_audio.c
index 8434f52..7cff1c8 100644
--- a/src/s_audio.c
+++ b/src/s_audio.c
@@ -328,6 +328,7 @@ void sys_set_audio_settings(int naudioindev, int *audioindev, int nchindev,
sys_log_error(ERR_NOTHING);
audio_nextinchans = inchans;
audio_nextoutchans = outchans;
+ sys_setchsr(audio_nextinchans, audio_nextoutchans, rate);
sys_save_audio_params(nrealindev, realindev, realinchans,
nrealoutdev, realoutdev, realoutchans, rate, advance, callback,
blocksize);
_______________________________________________
Pd-dev mailing list
Pd-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev