PlaneShift

Support => Linux Specific Issues => Topic started by: SquidProject on May 23, 2005, 10:46:02 pm

Title: No sound
Post by: SquidProject on May 23, 2005, 10:46:02 pm
OK I have asked this question before, I know, but hopefully now that there\'s a linux forum, someone will have an answer for me.

I have never had sound in PS, not even on the versions that I used the binary installer for.  This leads me to believe that the problem is with my system rather than with the way that PS is configured or built.  I realize that this makes this slightly off topic, for which I apologize, but I had nowhere else to turn.  When I run psclient, I get this about sound:

crystalspace.sound.software:
  Software Sound Renderer selected

crystalspace.sound.oss:
  SoundDriver OSS selected
opening audio device: No such file or directory

crystalspace.sound.software:
    Playing 44100 Hz, 16 bits, Stereo
    Volume: 1

Is there a way to choose alsa, or will it only work with oss?  if it only works with OSS, then I suspect that I don\'t have oss emulation working.  I am using a sound blaster audigy and gentoo 2.6.9-r13.  I have built all the oss emulation options into the kernel, but for some reason I still do not have /dev/dsp or /dev/mixer or /dev/sound/whatever.  I know from previous threads that there are other, hopefully smarter, gentoo users out there.  Can anyone help me?
Title:
Post by: Platyna on May 23, 2005, 11:50:03 pm
Indeed the fault is on your system. You have to compile your prefered sound
system, for example I am using OSS, since my card (SB AWE PCI) not works so
good on ALSA. Then you have to know what is your card module, it should be
in the documentation, and just add to your startup scripts modprobe [that
module] it should work fine then.

Regards.
Title:
Post by: SquidProject on May 23, 2005, 11:57:12 pm
The thing is, I have done all of this, and sounds works fine otherwise on my system.  Just not in Planeshift.
Title:
Post by: Platyna on May 24, 2005, 12:14:05 am
Have you used pssetup to change the sound system used?

Regards.
Title:
Post by: SquidProject on May 24, 2005, 12:17:31 am
Yes.  Software and DirectSound3d just don\'t work, while OpenAl causes Planeshift to not even finish starting up.  (I have openAl emerged, too.)
Title:
Post by: Platyna on May 24, 2005, 12:32:25 am
Well, see if you have /dev/dsp, do you have it?

Regards.
Title:
Post by: SquidProject on May 24, 2005, 12:44:50 am
No, for some reason I dont have it, even though I have built all the oss emulation into my kernel.  Is there something else i need to do for there to be /dev/dsp ?
Title:
Post by: Leeloo on May 24, 2005, 10:21:57 am
cd /dev

mknod -m 666 dsp c 14 3
mknod -m 666 dsp0 c 14 3
mknod -m 666 dsp1 c 14 19
mknod -m 666 dsp2 c 14 35
mknod -m 666 dsp3 c 14 51

mknod -m 666 audio c 14 4
mknod -m 666 audio0 c 14 4
mknod -m 666 audio1 c 14 20
mknod -m 666 audio2 c 14 36
mknod -m 666 audio3 c 14 52

mknod -m 666 mixer c 14 0
mknod -m 666 mixer0 c 14 0
mknod -m 666 mixer1 c 14 16
mknod -m 666 mixer2 c 14 32
mknod -m 666 mixer3 c 14 48

You probably only need /dev/dsp and /dev/mixer, but if you create all of them you should be on the safe side.
Title:
Post by: SquidProject on May 24, 2005, 10:38:17 am
I don\'t entirely understand what I just did, but it worked!  I\'ve been trying to fix that (on and off) for months.  I really appreciate your help on this, as well as the others who replied to this thread.
Title:
Post by: Platyna on May 24, 2005, 04:23:29 pm
It worked because you have created a special device - /dev/dsp which is
default one for Open Sound System (OSS) therefore psclient uses it.

Regards.
Title:
Post by: SquidProject on May 24, 2005, 09:07:34 pm
That makes sense.  What I sill don\'t understand is why a friend of mine, a fellow gentoo user, already had these devices in /dev.  I have a feeling they were supposed to be there by default, but for some reason they weren\'t.  Maybe I made some mistake when installing gentoo.
Title:
Post by: Leeloo on May 25, 2005, 09:38:27 am
He probably installed something that you didn\'t. I don\'t know how Gentoo packages are laid out, but there could be some kind of OSS package, or maybe it asks you to select ALSA, OSS or both.
Title:
Post by: Blaelb on January 23, 2006, 05:34:58 am
I have a related question -
I have two soundcards, one internal (laptop) and one external - the Audigy 2 Nx.  Is there a way for me to let planeshift run through the external one rather than the internal one?  I have arts and use KDE, but artsdsp has not given me any luck.