Hello everyone!
I found the object [readanysf~] and it appeared to be just what I needed for a patch of mine: a simple and plain soundfile player (not buffer player) reporting the advance in the file.
I had troubles compiling it: it said it needed Thomas' flext layer so I got that, compiled it without any troubles. But when it came to compiling [readanysf~], the output kept saying it couldn't find -lflext.
I did everything Thomas said in his clever readme file (added path to flext libs in /etc/ld.so.conf, ran ldconfig to update /etc/ld.so.cache) but it didn't work for [readanysf~] to compile until I copied everything from the flext dir. to /lib. That's not really clever I know but it's the only solution I found (-:
Other troubles came when I started using it: it works quite well for some time. But at one time it outputs:
readanysf~:: SRC error: SRC_STATE pointer is NULL
In the Pd window.
It does it mainly when I keep on loading files into it.
I have to restart Pd for it to work again.
What can it be?
Is it because of my compilation trick? Is it a problem with flext or [readanysf~] itself? I'm lost...
Maybe it's due to conflicts between libraries, I heard this could happen sometimes...
I run Pd 0.38.4 from Miller's site, Debian unstable kernel 2.6.8, realtime-lsm module and Jack Server realtime.
Does anyone know what it can be and by the way is there another plain soundfile player (I don't need variable speed nor position jump/locate) that outputs playback position in the file?
Thanks and sorry for the textflow (-:
Jerome,
yes, for some reason unknown to me, you need to put the libflext.so either in /usr/lib or /usr/local/lib and then do ldconfig. even if you update your ld.so.conf to recognize the new location of flext (normally /usr/local/lib/pd/flext/), it will not be recognized by the build system. don't know why that is.
and, that shouldn't have anything to do with the crashes you are having.
Other troubles came when I started using it: it works quite well for some time. But at one time it outputs:
readanysf~:: SRC error: SRC_STATE pointer is NULL
In the Pd window.
It does it mainly when I keep on loading files into it.
I have to restart Pd for it to work again.
What can it be?
sounds like a bug.
Is it because of my compilation trick? Is it a problem with flext or [readanysf~] itself? I'm lost...
pretty sure it has to do with readanysf~ itself.
Maybe it's due to conflicts between libraries, I heard this could happen sometimes...
I doubt this.
Does anyone know what it can be and by the way is there another plain soundfile player (I don't need variable speed nor position jump/locate) that outputs playback position in the file?
if you just want to read wav, aif data, then maybe try [readsf~] and add a timer for sussing out the file position.
-august.