[PD] threads with -rt

Tim Blechmann tim at klingt.org
Mon Oct 2 21:02:14 CEST 2006


On Tue, 2006-10-03 at 08:34 +0100, padawan12 wrote:
> Isn't the way to solve this problem to preallocate some space
> and have sndfiler read into that, then swap the pointer?

sndfiler preallocates the buffer, and loads the sound into this memory
region ...
it's not only swapping one pointer to this memory region ... the whole
dsp chain contains pointers to this region and has thus has to be
updated ... the bottleneck is the pd kernel itself, not the external

i suggested two changes:
- observer objects to track these pointers
- add one more memory dereference to the dsp functions

maybe one of these solutions will make it into the pd kernel before
2015 ...

so, blame pd, not sndfiler ...

cheers ... tim

--
tim at klingt.org    ICQ: 96771783
http://www.mokabar.tk

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/09fe1bfb/attachment.pgp>


More information about the Pd-list mailing list