[PD] readanysf~ almost beta

Thomas Grill t.grill at gmx.net
Mon Apr 14 20:04:33 CEST 2003


hi August,

> > It's a but difficult for me since it's apparently linux only, but i'll
give
> > it a try nonetheless.
>
> yeah, sorry.  never compiled anything under windows.  if you do get it to
> compile, can you send me patches and a makefile?

There are only a few changes necessary (i guess only replacing unistd.h and
all sys/*  by io.h), and i had to uncomment the code for mad which i
currently don't have.

>
> > However, there's one interesting thing and i'm really surprised that it
> > works for you at all....
> ...
> >    float buf[n*2]; // always multiply by the number of audio signal
outlets
>
> > n is not constant since it's a function argument, and you try to reserve
an
> > array of float with that.
> > Amazing that your compiler digests that (mine doesn't) ... it's
definitely
> > not C++ as i know it.
>
> im not sure, but i think it treats the float[] kindof like a new() call.

that's really not a bad feature, but a bit inefficient in a dsp function.


Oh i now remember a problem with readanysf~. When stopping a file which
could not be read (format not recognized) your external crashes.


best greetings,
Thomas





More information about the Pd-list mailing list