Hello. I extracted the sound code from my 3 years old local dosemu branch and re-diffed it against the current svn. This took lot of a hand-work, so the mistakes are possible. A quick test shows that the adlib now works on x86-64. But many progs (non-adlib ones) are still mute because the cpuemu doesn't exit after every port I/O the way vm86() did. The result is that run_irqs() doesn't come in time. If someone is willing to work on this, here's the patch.