This code is taken from Xmame/Xmess 0.36b. Some changes were made for support
of sample loading for the MSX-AUDIO and to make it work in fMSX-SDL.
