The Dink Network

MIDI Lag Under XP

January 15th 2005, 01:08 PM
wizardg.gif
Paul
Peasant He/Him United States
 
Ever since I "upgraded" to Windows XP I've noticed an annoying pause (a few seconds) every time a new MIDI starts in Dink. Anyone else get this? And more importantly does anyone know a way to fix it?
January 15th 2005, 01:10 PM
spike.gif
Yes. No.
January 15th 2005, 01:56 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
I get that as well. I thought of trying to peek into the Dink source and fix it, but all of that DirectX stuff is far beyond my comprehension.
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.
January 18th 2005, 05:12 PM
pq_skull.gif
Drake
Peasant He/Him
 
ELL OH FUDGIN' ELL
January 20th 2005, 04:26 PM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
WTF does merlin NOT know about computers