First post, by code120
Hello, I've managed after a bit of research to drastically improve the Midi sounds played through DosBox (and Windows in general) making use of soundfonts (.sf2) (probably already others use the same method). As it is, it requires a number of external programs running in the background, and since they're all free programs, I wondered if there could be a way to integrate them with DosBox in the future.
The programs I used are:
1. a virtual Midi device (like LoopBe1)
2. SaviHost (a VST plugin host)
3. SFZ SoundFont Player (FluidSynth could also probably used (and without needing SaviHost), but I'm not sure).
To make it work I did the following (as explained here):
1. installed LoopBe1
2. put in the same folder sfz.dll and savihost.exe, renaming savihost.exe to sfx.exe, then I run sfz.exe
3. set LoopBe1 as Midi Input device (Devices -> MIDI)
4. chose my soundfont (i'm using WeedsGM3, see this post, direct download here)
5. set channel 10 in the SFZ player to bank n.128 or in some old midi files (as in most DOS games) drums would be played as piano (see here for reference).
6. Check Autosave PlugIn Bank in 'FIle' menu, so Sfz will remember the settings.
An integration with DosBox could allow to set different soundfonts for different games without having to change it manually every time. Moreover, now if DosBox is closed through ctrl+f9 and there are still instruments playing, they'll keep playing and you must manually reset Midi through the "panic button" in the Sfz player, and obviously the player must be open in the background. They're not big issues and it's not so complicated once you have it running anyway, then considering you'll have your games sounding as they never did 😀 (who needs SB-AWE32 support then? Just try Gabriel Knight or Warlords 2 Deluxe to believe!)...
PS: I forgot to mention that to make games use LoopBe1, thus using the soundfont, the midiconfig parameter in the DosBox configuration file must be changed(midiconfig=1 for example), or you must select LoopBe1 as defalut Midi Device instead of MS Wavetable (with this in Vista), and the soundfont will be used also for normal midi playback (as long SFZ is running).
### Cosmic Supremacy ### --- a free 3D space MMO for Civilization and Master of Orion fans!!!