DOSBox: GUS and Shortcuts

Computers by Daktary on  Mar 10, 2011

Ok, so I promised a tutorial in the last blog and I'm keeping my word. This is a tutorial on how to get the Gravis Ultrasound(GUS) working with DOSBox.

For those who don't know, the Gravis Ultrasound was a great sound card back in the day, that generally gave a better sound than any other audio card on the market. If you're interested about it you can read more of Wikipedia.

You may say what's the big deal as there are guides on the net that tells you how to do this. Well, true, but if you follow them you'll realize that your DOSBox can only play the Digital Sound portion with GUS(which DOSBox supports by default), but not the MIDI part... that's because the "geniuses" didn't understand that the path is actually the virtual path... ok, I'll explain how to do it, in case anyone is interested.

Firstly, you'll need the GUS patches. I guess you can find them from different sources, but to save you the trouble, you can get them here.

Extract the contents of the archive to a place of your liking after which create an empty folder on your hard drive with 8 or less characters long, somewhere that isn't a folder that contains space characters. For example we're going to use C:\ULTRASND.

You just need to copy the contents of either ULTRASND411(standard GUS drivers) or ULTRASNDPPL161(presumably "fine tuned" GUS drivers) to your newly created folder.

That's all for the file manipulation part, now let's go to the settings. I'll show you a trick that will save you the headache of having to remember setting up the GUS patches every time you start DOSBox.
Ok, now open up DOSBox's options and your notepad will be full of text :P .
Search for the "[gus]" section(without the quotes) and replace "gus=false" with this:

gus=true
gusrate=44100
gusbase=240
irq1=5
irq2=5
dma1=3
dma2=3
ultradir=u:\

You can set the sample rate to whatever you like(22050, 44100, 48000, etc.), but I generally like the 44100Hz quality.
"ultradir=u:\" refers to the place where the GUS drivers are to be found. Don't get confused, with what you've done earlier, you'll understand in the next and final step.

Now scroll down to the end of the configuration file and underneath the "[autoexec]" section put the following line below it: "mount u c:\ULTRASND"(again without the quotes). What this actually does it to automount the Gravis drivers every time you start DOSBox to a virtual drive with the letter U, the exact same drive you've set your ultradir as destination.

All you have to do now is to save the file and set your favorite game to use Gravis to play it's music files.

 


While we are on the subject I'll also show you how to make shortcuts for your DOS games through DOSBox so they'll be at a click's distance :P This shortcuts will use stand-alone configuration files so you can configure your DOSBox preferences for every game without modifying the global settings.
Note: For a better understanding I will use "<>" to underline a generic name that you'll complete on your own.

Ok, first thing you need to do is to open up your DOSBox configuration file. Select it all and save the file with ".conf" as the extention to a place of your liking(I usually use the game's directory).
Open the .conf file again(in Notepad or any other text editor) and go to the "[autoexec]" section(bottom of file) and write the following(what's on each line after # will be ignored):

mount c <your game folder's path> #mounts your game folder as the virtual c drive
c: #sets the current directory to c:\
<game executable or whatever you'd like to run>
exit #exits DOSBox after you've quitted the game

Here's an complete example(It's for Crusader: No Regret, if you were asking):
@ECHO OFF
mount c F:\Games\Crusader
mount d F:\crusader -t cdrom
c:
cls
regret
exit

"@ECHO OFF" and "cls" are just for aestetic reasons(they only remove the extra text on screen). You don't actually need them. Also I've included an extra drive, D which will serve as a CD-Rom type drive.

Then make a make a shortcut pointing to your DOSBox(of if you prefer making a .bat file is fine with me).
Right-Click it, Properties and under the Shortcut tab go to Target. Now make sure it looks something like this:
"<path pointing to DOSBox.exe>" -conf <path to your .conf file>
Example:
"C:\Program Files\DOSBox-0.74\DOSBox.exe" -conf F:\Games\Crusader\dosboxPerformance.conf
Also note that if your .conf path contains a " "(space character), make sure to surround the path with quotes.

Just hit ok and you're done. If you've followed the steps closely, you shouldn't have encountered any problems.

 

 

BTW, while previewing the blog I noticed that some fragments of the blog seem to dissappear. Most of the generic names lines(I guess that got something to do with the html encoding) but also other portions as well... now that's weird... any idea what's up with that?

Cristian

Subscriber, NoobFeed

Latest Articles

No Data.