Forums » Linux
switch from /dev/dsp to /dev/dsp2?
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?
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?
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. :-)
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.
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!
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!
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.
I'll add a todo item to make that configurable in ~/.vendetta/config.ini.
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 :)
Thanks :)
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)
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)
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
But this is even better
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.
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.
ULTRA MULTI-KILLLING SPREE!!!!!!!!!!!
Anyway, devfs doesn't stop you from creating your own symlinks. You can still try it. Works for me.
Anyway, devfs doesn't stop you from creating your own symlinks. You can still try it. Works for me.
Um. devfs is deprecated on gentoo, you know. You really should switch to udev...
Oh, right. I'm using udev, not devfs.
Isn't OSS deprecated too?
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!
OSS however, I will hold on to till the bitter end!
Erm, why?
ALSA provides an OSS emulation interface, so data sent to /dev/dsp are already processed through it.
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!!!
But ALSA sounds better than OSS...
..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
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