To help narrow down where the problem lies, please try playing the MIDI files with the pre-compiled MIDITEST.EXE example (in the C\BIN folder) and see if you get the problem with that too. If that is affected too, please upload a MIDI file that the problem is happening with to have a look at here...
ftp.un4seen.com/incoming/