
18 Dec
2009
18 Dec
'09
5:20 p.m.
I would do resampling (with some of the Interpolation routines) and mixing in two steps, that is I would prepare (lazy) storable vectors with the resampled sounds and mix them. Since Haskell is lazy, this is still somehow "on the fly", although one could still wish to eliminate the interim storable vectors.
You could use stream fusion, although you will need to adapt that for the interpolation, but it should work.