Click to See Complete Forum and Search --> : No sound in various quake engine games


m00s3
04-07-2004, 06:39 PM
Enemy territory and quake3 both have this problem (although it works in quake when winex is used..)

loads up, i get:
------- sound initialization -------
/dev/dsp: Input/output error
Could not mmap /dev/dsp
------------------------------------

i have tried killing artsd before running the games, still same prob.

any other ideas? ive been trying to follow similar threads but i cant seem to get an answer :(

│ Card: VIA 8235 │
│ Chip: C-Media Electronics CMI9738 │

Sound works in other programs, (and in winex), but not this:(

i read in this (http://www.justlinux.com/forum/showthread.php?s=&threadid=122427&highlight=enemy+territory) post :
which I managed to fix by adding 'et.x86 0 0 direct' to /proc/asound/card0/pcm0p/oss, but I never had to do this before.. In my last install with the same kernel, distro and PC,
but how do i go about doing that?

any help is much appreciated!

cheers:)

oh yeh, using mandrake 10

bwkaz
04-07-2004, 07:48 PM
Some versions of the Alsa drivers don't allow programs to mmap /dev/dsp; if you're using Alsa maybe that's the problem?

If you're using Alsa, you need OSS emulation on to even use /dev/dsp, and it's the OSS emulation that doesn't support mmap's.

Parcival
04-25-2004, 03:12 PM
What exactly am I supposed to do with the OSS emulation?

My problem:

Running Gentoo on a box with Shuttle motherboard (AV45GT) that comes with the CMI8738 sound chip.
Sounds and music work for all my applications that came with KDE, I can also watch Matrix with Xine.
Sounds and music don't work with Mutantstormdemo, Spacetripperdemo, and frozen-bubble.

This is how my .config looks like (kernel-2.6.6-rc1):


# Advanced Linux Sound Architecture
#
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_HWDEP=y
CONFIG_SND_RAWMIDI=y
CONFIG_SND_SEQUENCER=y
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_SEQUENCER_OSS=y
# CONFIG_SND_RTCTIMER is not set
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set


- snip -


CONFIG_SND_CMIPCI=y


after bwkaz' tipp I also enabled the following settings, recompiled the kernel, rebooted my machine, and re-emerged the games in question, but without significant result (i.e. sound still does not work in the games, but everywhere else it's just fine):


# Open Sound System
#
CONFIG_SOUND_PRIME=y
# CONFIG_SOUND_BT878 is not set
CONFIG_SOUND_CMPCI=y
# CONFIG_SOUND_CMPCI_FM is not set
# CONFIG_SOUND_CMPCI_MIDI is not set
# CONFIG_SOUND_CMPCI_JOYSTICK is not set
CONFIG_SOUND_CMPCI_CM8738=y
# CONFIG_SOUND_CMPCI_SPDIFINVERSE is not set
# CONFIG_SOUND_CMPCI_SPDIFLOOP is not set
CONFIG_SOUND_CMPCI_SPEAKERS=2
# CONFIG_SOUND_EMU10K1 is not set


I also killed artsd as a friend suggested, but still no difference (except that the KDE sounds are gone, too :) ).

Don't know if this is connected with the problem, but in spacetripperdemo and in frozenbubble I also get this error, after which I have to re-emerge the game to be able to start it again:


bash-2.05b$ /usr/games/bin/spacetripperdemo
Welcome to Space Tripper!
mcop warning: user defined signal handler found for SIG_PIPE, overriding
mcop warning: user defined signal handler found for SIG_PIPE, overriding
[usig] Caught Unix signal SIGSEGV
/opt/spacetripperdemo/spacetripper-bin(__strtod_internal+0x1c72) [0x8055cea]
/lib/libpthread.so.0 [0x40099d69]
/lib/libc.so.6 [0x401eab78]
bash-2.05b$


Mutantstormdemo gives me no errors.

On my old SuSE installation all games worked flawlessly.

<EDIT>I just checked and saw that OSS support has been turned on in my USE flags in make.conf since the very start of my Gentoo installation.</EDIT>

Parcival
04-30-2004, 10:51 AM
Okay, I just noticed that XMMS uses OSS too, so I removed OSS support from my kernel, recompiled, rebooted, so now it's just my oss emulation in my alsa settings that handles oss requests - and XMMS still plays music. Hence, my oss emulation should be okay - still no clue why the mentioned games refuse to play sound. :confused: Ideas?