Forums » Linux

Can't set audio driver!

Sep 30, 2004 Schaekel link
Greetings!

I installed Vendetta as a user without root-privileges into my home-directory. All works fine except the sound. My soundcard (soundblaster live) works fine with those "OSS"-Drivers. It is compiled into the kernel and DEBIAN also uses them. Also the audio-rights are set for the user. But in Vendetta, i can not set the audio drivers to "OSS". The message "Can't set audio driver!" appears in the console. At least, i must apologize for my english.
If more information is neccessary, just ask them.

Thanks,

Sascha
Sep 30, 2004 Polleke link
Could you give the output of these commands:

lsof | grep dsp
lsof | grep snd
cat /proc/asound/version
Sep 30, 2004 Schaekel link
bash: lsof: command not found
cat: /proc/asound/version: Datei oder Verzeichnis nicht gefunden
^<< means: not found
Sep 30, 2004 Polleke link
Get lsof!

And don't use translations, only use English. Much easier to find errors with google.

The not found proc file is ok. Looking if you really have OSS and not ALSA.
Sep 30, 2004 Schaekel link
linux:~# lsof | grep dsp
xmms 1595 schaekel 9w CHR 14,3 5251 /dev/dsp
gconfd-2 1730 schaekel mem REG 3,1 11112 21146 /usr/lib/libartsdsp.so.0.0.0
firefox-b 2003 schaekel mem REG 3,1 11112 21146 /usr/lib/libartsdsp.so.0.0.0
linux:~# lsof | grep snd
linux:~#

About translation: I dont think it will failure because of that ;-).
Sep 30, 2004 Polleke link
No, translation are not the problem. But you shouldn't use them.

Close down XMMS and try again. You also want to close down ARTS. Do this with 'kconfig'.
Sep 30, 2004 Schaekel link
linux:~# kconfig
bash: kconfig: command not found
linux:~# apt-get install kconfig
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... Fertig
E: Konnte Paket kconfig nicht finden
linux:~# apt-cache search kconfig
libsnack2-dev - Snack development files
linux:~#

would be too much work to throw out those translations ;). He just can not find any package.
Sep 30, 2004 Polleke link
To trow out those translations for just one command you set the gloval var LANG. Like this:

LANG=en_US command

And I made a mistake, it's not kconfig but kcontrol. And you do it as normal user. Not as root.

You stop ARTS and XMMS. Make sure 'lsof | grep dsp' is not showing anything anymore.
Sep 30, 2004 Froste link
Sep 30, 2004 Polleke link
He's not using ALSA. That thread won't help.
Sep 30, 2004 Froste link
it has nothing to do with what he's using, but where he changes it, so that thread has all the info he'll need.
Oct 01, 2004 Riot777 link
I have the same issue as you, I'm using Slackware Linux with only OSS drivers and have sound blaster live!. Everything is set good but OSS drivers of vendetta is not working.

Cheers!
Oct 03, 2004 adam.van link
I have the same problem with Debian (Unstable) as a workaround I do this:

After the game loads up and verifys the files:

cd ~/.vendetta/drivers
rm -rf gkalsa.so
ln -s osssound.so gkalsa.so

This will force it to use teh OSS driver which works fine..
NOTICE after you shutdown the game and startup again it will redownload the file gkalsa.so so you will have to do this everytime you want to play.

hope this helps...
Oct 03, 2004 mr_spuck link
And I thought I think complicated... *sheesh* you can just edit your config.ini to use the oss driver.

Quoteth a1k0n:

The only way to get it back to OSS (right now) is to edit config.ini and change this line:
AudioDriver=Open Sound System driver

http://www.vendetta-online.com/x/msgboard/6/5923
Oct 04, 2004 p4trx link
I had same problem as others in this thread: I don't use ALSA and I get the following error:
ALSA lib pcm.c:1908:(snd_pcm_open_noupdate) Unknown PCM default
cannot open audio device default (No such file or directory)

which makes sense except for the fact that I took your suggestion and put the line in Config.ini, AudioDriver=Open Sound System driver. I still get the same error.
Oct 04, 2004 p4trx link
man i am a goof; I literally put AudioDriver=Open Sound System driver in config file when u need to put Audiodriver=osssound.so

problem fixed! thanks mr_spuck and a1c0n for the original post
Oct 05, 2004 a1k0n link
"Audiodriver=osssound.so" works? weird. You are supposed to literally add "AudioDriver=Open Sound System driver". Anyway, I should probably make the ALSA driver smarter about falling back to OSS so we can avoid this whole issue.