Many thanks for this. I never did find the time to finish up my
SDL_mixer patch and send it upstream because life has taken over but
this looks great.
Tell me about it ... took a long time to get this buffer patch done as well.
I look forward to cutting my patch in half. :)
Well the one problem is that if you depend upon midi-buffers then your SDL_mixer patch will have to depend upon a brand new release of FluidSynth. It will take awhile before that's mainstream enough to rely on (i.e., included as the official packaged version of Fluid in all the major distros).