Hi Miller,<br><br>Thanks for your reply. Would this work if I set the samplerate from within the patch some time after startup ? Or should I start Pd with the proper sample rate, and then open my patch ? I have no idea how I can do the later, except in a very inelegant way (make a small patch with a delayed loadbang that just sends a &quot;pd open patch.pd&quot; message).<br>
<br>Cheers,<br><br>Pierre.<br><br><div class="gmail_quote">2012/11/6 Miller Puckette <span dir="ltr">&lt;<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This popped up on the list earlier... the sample rate gets set _after_<br>
patches are loaded from the command line if -nogui is set.  It&#39;s on my long<br>
list of things to try to fix.  In the meantime, as a workaround, if you can<br>
namage to delay Pd&#39;s loading of the patch, even by a fraction of a second,<br>
it should get the proper sample rate.<br>
<br>
cheers<br>
Miller<br>
<div><div class="h5"><br>
On Tue, Nov 06, 2012 at 08:33:22PM +0100, Pierre Massat wrote:<br>
&gt; Dear List,<br>
&gt;<br>
&gt; While trying to use oggwrite~ on my RPi I noticed that it complained about<br>
&gt; being unable to change the samplerate from 0 to 44100.<br>
&gt; I turns out that Pd launched from the command line with the -nogui flag has<br>
&gt; a samplerate of 0 !<br>
&gt; Adding the &quot;-r 44100&quot; flag doesn&#39;t change anything, nor does adding the<br>
&gt; &quot;-alsa&quot; flag.<br>
&gt; I wonder what causes this, whether it is a bug or not, and how Pd manages<br>
&gt; to work fine anyway (the only real problem i&#39;ve had this far was with<br>
&gt; oggwrite~)...<br>
&gt;<br>
&gt; Any clue?<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Pierre.<br>
<br>
</div></div>&gt; _______________________________________________<br>
&gt; <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
&gt; UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br>
</blockquote></div><br>