[PD] threads with -rt

Tim Blechmann tim at klingt.org
Mon Oct 2 18:19:36 CEST 2006

On Mon, 2006-10-02 at 17:53 +0200, Davide Morelli wrote:
> >
> > there's 2 externals in cvs called:
> > tb/sndfiler
> > grh/threadlib
> >
> yeah, I use them, but I'm still having xruns problems, and I wonder if it is 
> normal or not..
> do you get xruns loading a "normally" large soundfile (let' say a  16 
> seconds stereo wav file) while playing?
> I suspect that the sndfiler thread is still too high (i start pd with 
> the -rt flag).. i didn't mess with priorities or NICE levels, I only 
> installed the ccrma rdt kernel and start jackd with -R and pd with -rt

i doubt, it's related to the soundfiler thread ... but rather to pd's
need to recompile the dsp chain, when the location of an array in memory
changes ... 
so, when loading a soundfile, it will be read to memory in the helper
thread, but the recompilation of the dsp chain still needs to be
synchronous ... so there you have the dropouts ... 
so either "you don't want to load soundfiles during the performance" or
"you don't want to use soundfiles in your performance, use synthesis
instead" or "use miller's upsampling hack" ...

the only advantage of the sndfiler is, that it's able to read more file
formats, since it's using libsndfile ...

for the dropouts, blame pd, not sndfiler ...

cheers ... tim

tim at klingt.org    ICQ: 96771783

Nothing exists until or unless it is observed. An artist is making
something exist by observing it. And his hope for other people is that
they will also make it exist by observing it. I call it 'creative
observation.' Creative viewing.
  William S. Burroughs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20061002/8cb8c525/attachment.pgp>

More information about the Pd-list mailing list