bzflag failed to open audio device

Help with Setup, Hardware, Performance or other Issues...Or just pimp your rig.
Post Reply
[ redacted ]
Private
Private
Posts: 1
Joined: Wed Jan 30, 2013 9:51 pm

bzflag failed to open audio device

Post by [ redacted ] »

I have the following error:

name@host:~$ bzflag
Failed to open audio device /dev/dsp or /dev/sound/dsp (2)
...
It ran perfectly except under "Audio options", "Sound volume" was set to "Unavailable". After I quit (not closed) Rhythmbox, everything worked.
User avatar
blast
General
General
Posts: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: bzflag failed to open audio device

Post by blast »

I split this into a new topic since this had been posted as a reply to a 10 year old topic.

Anyways, /dev/dsp is only utilized when using OSS instead of alsa, and generally the OSS system is only used when the game client is build without SDL. So, a few questions.

What output to you get when you run 'bzflag -version'?

What version of the game is this?

What operating system (and version) are you running?

Is this a package provided by the package manager or did you compile it yourself?
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
blu132
Private
Private
Posts: 2
Joined: Thu Dec 18, 2008 12:53 pm

Re: bzflag failed to open audio device

Post by blu132 »

Hello,
I have a little problem related to the sound in bzflag.
The problem is: there is none.
Under Options -> Audio , it says, the Sound is "Unavailable". Other programs work though.
The used OS is Ubuntu 12.04
I am using PulseAudio and built from the sourcecode, following the instructions from the README file included.
Funny thing is: the outdated version of the game in the software center has sound. Before building and installing the sourcecode, I uninstalled the package (of course).
So how do I fix this?

Oh and if it is relevant: My Headset is a USB device...just mentioning because this constantly gets me into trouble...one mistake I will never do again...
Greetings,
blu132

Edit: I read the Forum rules and noticed I should have opened a new topic for this since this one is pretty old. I will think of that next time, sorry.
User avatar
blast
General
General
Posts: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: bzflag failed to open audio device

Post by blast »

My guess is that you didn't build with SDL. Run the configure script again and look at the output at the end. I think it mentions if it's going to use SDL or not. You could also check the version string of 'bzflag -version'. It should have SDL in the version string if it was built with it.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
blu132
Private
Private
Posts: 2
Joined: Thu Dec 18, 2008 12:53 pm

Re: bzflag failed to open audio device

Post by blu132 »

Thanks, I'll try that
Post Reply