HOWTO: Linux - Uplink - Choosing a sound device

For problems with the game

Moderators: jelco, bert_the_turtle, Chris, Icepick, Rkiver, Punisher Bass

gravygoat
level0
Posts: 7
Joined: Sun Jan 28, 2007 9:34 pm
Location: Woodbine, GA

HOWTO: Linux - Uplink - Choosing a sound device

Postby gravygoat » Sun Jan 28, 2007 11:14 pm

Uplink uses the SDL sound libraries on Linux. SDL will use the default sound device in your system as defined by whichever hardware device links to /dev/dsp. If you have more than one sound device and want to use something other than the default (such as a using USB headset when your motherboard sound is the default) look in /dev and see how many dsp entries you have. My machine has 3 - /dev/dsp is my motherboard, /dev/dsp1 is my USB headset, and /dev/dsp2 is my USB webcam.

To make an SDL game use something other than the default you need to set an environment variable telling SDL which dsp device to use. The environment variable is SDL_PATH_DSP and it needs to be set either in your profile when you log in (if you want it to be the new default) or every time you run the game. You can run it from the command line like this:

export SDL_PATH_DSP=/dev/dsp1; uplink

Note the semicolon between the variable export and the uplink command. This allows you to run both on one line. Alternatively you can do the export on one line, hit enter, and then run uplink.

I have set my command to start the game in my KDE menu entry to look like the one above so it sets the variable every time I start the game.

Happy gaming!
~{Gravygoat}~

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests