Re: [Alsa-user] cs46xx no sound in games
Brought to you by:
perex
From: Darryl C. <dco...@ip...> - 2002-04-14 09:11:27
|
> also, try to set the default opening mode of oss device as > non-blocking, so that the program won't hang at least. add the > following to /etc/modules.conf > > options snd-pcm-oss snd_nonblock_open=1 > > Ok, added these in ... options snd-cs46xx snd_index=0 snd_mmap_valid=1 snd-pcm-oss snd_nonblock_open=1 Still get a hang on sound initialisation. Here is some info from the system... [root@daffy /root]# ps -ef |grep wolf darrylc 1988 1 0 00:30 pts/4 00:00:00 ./wolf.x86 darrylc 1989 1988 3 00:30 pts/4 00:00:01 ./wolfsp.x86 root 1992 1697 0 00:31 pts/2 00:00:00 grep wolf [root@daffy /root]# [root@daffy /root]# strace -p1989 open("/dev/dsp", O_RDWR <unfinished ...> [root@daffy /root]# [root@daffy /root]# [root@daffy /root]# [root@daffy /root]# fuser /dev/dsp* /dev/dsp: 1988 1988m 1989 /dev/dsp0: 1988 1988m 1989 [root@daffy /root]# [root@daffy /root]# lsmod Module Size Used by snd-mixer-oss 9328 0 (autoclean) snd-pcm-oss 36928 2 (autoclean) snd-cs46xx 69904 2 snd-pcm 49760 0 [snd-pcm-oss snd-cs46xx] snd-timer 10416 0 [snd-pcm] snd-ac97-codec 23152 0 [snd-cs46xx] snd-rawmidi 12992 0 [snd-cs46xx] snd-seq-device 4112 0 [snd-rawmidi] snd 26848 0 [snd-mixer-oss snd-pcm-oss snd-cs46xx snd-pcm snd-timer snd-ac97-codec snd-rawmidi snd-seq-device] soundcore 3984 6 [snd] mga 99616 3 agpgart 16448 3 3c59x 25696 1 (autoclean) [root@daffy /root]# With the no-block option set I notice that strace reports the open call with an "<unfinished ...>" string on the end. Looks like nothing else but rtcw has device open. lsmod reports it used twice, no artsd running so I always assumed that the game uses two connections to the module, especially since nothing was using the module before the game was started. Is that possible? You do have to switch to single-user mode within the game, maybe the extra connection is picked up there? I'll keep tinkering. darryl |