Thanks for replying. If you don't mind, I'll take this conversation (about MIDI buffers) to the other thread ("Making MIDI player read from a buffer"), and stop CCing James, Sam and Ryan.
PS. Ryan, if you're reading this, I heard your FLOSS Weekly interview a couple of years back (on SDL), and it was really inspiring. I took your advice and wrote Tetris :)