end-of-sample interrupt to free the buffer... Either way you either have to delay GC
until the sample playback has finished... (well technically until the soundcard DMA
has transferred the sample to the soundcards onboard memory) or free the memory
when playback has finished. These ammount to the same thing... but using a StablePtr
and explicit free seems much nicer than hacking strange stuff into a finalizer.
Keean. _______________________________________________ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe