Forums » Linux

switch from /dev/dsp to /dev/dsp2?

May 10, 2006 Scuttle link
Hi there, I just started playing and so far I really like this game.

I have two sound cards -- one for the speakers and one for gaming. Often I game with headphones while my girlfriend listens to internet radio.

I need to tell Vendetta to use /dev/dsp2 instead of /dev/dsp.

Any suggestions?
May 12, 2006 roguelazer link
I think the devs would need to code this sort of thing in. I don't know much about ALSA, but I know in OSS you need to specify the card in the code. There's no environmental variable you can specify. However, you could try running a sound daemon like esd and running VO under it. I think there's a way to do what you want using something like esd. Or just convince the devs to program in an audio device dropdown for Linux. :-)
May 16, 2006 avirulence link
Yeah, I would also like a configuration option for me to choose between my alsa devices. I don't think that would be hard to code.
May 17, 2006 Scuttle link
Thanks for the responses guys. Yeah it looks like they have hard coded a value that needs to be adjustable. It's possible to change the dsp device in Doom 3/Quake 4 and Unreal Tournament by manually adjusting the configuration files.

The problem is that the dsp device is hard coded into the osssound.so file -- and I tried editing it but VO spotted the change and downloaded a fresh copy!
May 22, 2006 a1k0n link
Heh, doh. Yeah. It also looks for /dev/dsp_gf1, from the ooooooold perex gravis ultrasound drivers which later, eventually, evolved into ALSA. So, uhh, you could ln -s /dev/dsp2 /dev/dsp_gf1 and it'll use that. But that's kinda stupid.

I'll add a todo item to make that configurable in ~/.vendetta/config.ini.
May 23, 2006 avirulence link
Hi, that would be great, but I think there is some kind of call for ALSA that gives you the available devices, maybe that is something to incorporate in the GUI in the future, for the large stream of 'new' Linux users (especially (k)ubuntu) it might be hard to figure out which device has what name and such.

Thanks :)
May 24, 2006 a1k0n link
Well, ALSA is another story. If you're looking for any kind of /dev/dsp then you're using the OSS driver.

But certainly, under ALSA it'd be nice to be able to override the default device, which is "default", via the GUI. You can already override it in config.ini by adding the following:

[alsa]
device=foo

(replace "foo" with whatever)
May 24, 2006 avirulence link
Great, thanks.. Yeah, actually I was willing to try OSS emulation via ALSA when it would be possible to change /dev/dsp :)

But this is even better
May 25, 2006 Scuttle link
a1k0n, thanks for the answer!

I would actually try doing that crazy dsp_gf1 link but I run gentoo, which means devfs, which means that /dev is not a real folder... Usually a good thing. Fortunately the sound from VO is doesn't annoy my girlfriend too much, unlike say Unreal which drives her up a wall.
May 25, 2006 a1k0n link
ULTRA MULTI-KILLLING SPREE!!!!!!!!!!!

Anyway, devfs doesn't stop you from creating your own symlinks. You can still try it. Works for me.
May 26, 2006 roguelazer link
Um. devfs is deprecated on gentoo, you know. You really should switch to udev...
May 26, 2006 a1k0n link
Oh, right. I'm using udev, not devfs.
May 27, 2006 avirulence link
Isn't OSS deprecated too?
May 27, 2006 Scuttle link
Arghh, I just checked and I really need to migrate from devfs to udev. That's an hour I can't spend playing VO!

OSS however, I will hold on to till the bitter end!
May 27, 2006 avirulence link
Erm, why?
May 28, 2006 ufoman link
ALSA provides an OSS emulation interface, so data sent to /dev/dsp are already processed through it.
May 29, 2006 Scuttle link
sh*t Av, just reading this is time I haven't spent playing!!! No seriousluy, It works, so I don't want to mess with it. I've had crappy sound drivers under linux before, and don't want to play with it. Maybe it would be fine, but I want to play VO!!!
May 30, 2006 roguelazer link
But ALSA sounds better than OSS...
May 30, 2006 thurisaz link
..true story:

I'd used OSS for years, tried switching once without really understanding the process, and generally just tolerated VO's bloopy-bloop-ish music..

then, around a year and a half ago, I actually bothered to read a how-to, learned about mixers, and took a weekend to get ALSA working on my i810; edited my .ini for ALSA, logged in, and "WOW!!" ...the music especially was *very noticablely* richer and more complex.. and I've never looked back :D