Hallo, padawan12 hat gesagt: // padawan12 wrote:
Isn't the way to solve this problem to preallocate some space and have sndfiler read into that, then swap the pointer?
When I was in Graz recently Peter Plessas told me about a little trick he got from Thomas Musil: You can preload the start of a long file into a table in advance, play this with tabplay~ etc. and then seemlessly switch over to [readsf~] on the go, but start reasf~-playing with an offset matching the table-size.
This idea is illustrated in attached abstraction "gigaplay~.pd" (because GigaSampler uses a similar idea and even has a patent on it, duh.)
It's good to be in Graz from time to time not only for things like this. ;)
Frank Barknecht _ ______footils.org_ __goto10.org__