All right, thanks for your help.<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">
I think this depends on how oggwrite~ works internally.  Objects ideally<br>
should react to changes in sample rate in real time, since the user can change<br>
the rate after the object has been created.<br>
<br>
Unfortunately this isn&#39;t even true of the delwrite~ object, whose memory<br>
should be resized dynamically when the sample rate changes and doesn&#39;t!<br>
<br>
cheers<br>
<span class="HOEnZb"><font color="#888888">Miller<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, Nov 06, 2012 at 10:04:45PM +0100, Pierre Massat wrote:<br>
&gt; Hi Miller,<br>
&gt;<br>
&gt; Thanks for your reply. Would this work if I set the samplerate from within<br>
&gt; the patch some time after startup ? Or should I start Pd with the proper<br>
&gt; sample rate, and then open my patch ? I have no idea how I can do the<br>
&gt; later, except in a very inelegant way (make a small patch with a delayed<br>
&gt; loadbang that just sends a &quot;pd open patch.pd&quot; message).<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Pierre.<br>
&gt;<br>
&gt; 2012/11/6 Miller Puckette &lt;<a href="mailto:msp@ucsd.edu">msp@ucsd.edu</a>&gt;<br>
&gt;<br>
&gt; &gt; This popped up on the list earlier... the sample rate gets set _after_<br>
&gt; &gt; patches are loaded from the command line if -nogui is set.  It&#39;s on my long<br>
&gt; &gt; list of things to try to fix.  In the meantime, as a workaround, if you can<br>
&gt; &gt; namage to delay Pd&#39;s loading of the patch, even by a fraction of a second,<br>
&gt; &gt; it should get the proper sample rate.<br>
&gt; &gt;<br>
&gt; &gt; cheers<br>
&gt; &gt; Miller<br>
&gt; &gt;<br>
&gt; &gt; On Tue, Nov 06, 2012 at 08:33:22PM +0100, Pierre Massat wrote:<br>
&gt; &gt; &gt; Dear List,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; While trying to use oggwrite~ on my RPi I noticed that it complained<br>
&gt; &gt; about<br>
&gt; &gt; &gt; being unable to change the samplerate from 0 to 44100.<br>
&gt; &gt; &gt; I turns out that Pd launched from the command line with the -nogui flag<br>
&gt; &gt; has<br>
&gt; &gt; &gt; a samplerate of 0 !<br>
&gt; &gt; &gt; Adding the &quot;-r 44100&quot; flag doesn&#39;t change anything, nor does adding the<br>
&gt; &gt; &gt; &quot;-alsa&quot; flag.<br>
&gt; &gt; &gt; I wonder what causes this, whether it is a bug or not, and how Pd manages<br>
&gt; &gt; &gt; to work fine anyway (the only real problem i&#39;ve had this far was with<br>
&gt; &gt; &gt; oggwrite~)...<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Any clue?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Cheers,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Pierre.<br>
&gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
&gt; &gt; &gt; UNSUBSCRIBE and account-management -&gt;<br>
&gt; &gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
</div></div></blockquote></div><br>