I haven't looked at GME. You think a newer version will fix some of the audio problems? I haven't experienced any artifacts on Windows 10, but I get no MIDIs on Ubuntu (even after trying Saffith's suggestion.)

I fixed the problem by 1) patching Allegro's handling of focus switching and 2) modifying the ZC code to reset the screen state whenever it is running in full screen mode on windows and receives focus.

The problem is that Microsoft dropped support of DirectDraw ages ago, so that ddraw.lib isn't even in the DirectX SDK. Instead when ZC uses direct draw, it gets old versions of the library included in Windows only for legacy programs, filtered through God knows how many layers of compatibility layers.