The Dink Network

Reply to Re: MIDI Lag Under XP

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
January 15th 2005, 04:07 PM
wizardb.gif
merlin
Peasant He/Him
 
I know what the bug is. On Windows XP, 2000, and NT, the mciSendString() command is extremely slow (but only when used with the open command). And, of course, Seth uses this command. Another bug, for future reference, is that the first note of a MIDI is dropped if the song does not begin with a quarter rest.

There are two workarounds, besides the obvious of not using MIDI:

1) Use a static member object to keep track of the MIDI and open it only when necessary.
2) Use the MMSystem interface, which is the one used by Winamp. I believe (but am not sure) that this supports 64-bit also (WinMM's mciSendString doesn't).

One handy tidbit that is also probably a contributing factor:

Lines used by Seth's midi interface: ~200
Lines used by Windemere's midi on Windows: exactly 16.