Re: [Plib-users] sl error?
Brought to you by:
sjbaker
|
From: Chris Willis-F. <cwi...@ws...> - 2001-07-17 00:31:01
|
Okay, i've done a little bit more investigating...
Weird thing #1: tuxkart works fine, even when i'm playing other sound.
Also, I checked both sawfish and gnome (these being what i'm running) and
they both have their sound stuff turned off. Still no go on AQFH...
Weird thing #2: Well, I'll let you figure out meaning of this since I'm
not really sure what it's telling me...
A snippet from "strace tux_aqfh" where things appear to start going wrong,
as near as i can tell (I've fiddled with formatting for readability but
the data's 100% accurate, copy/pasted):
==SNIP==
ioctl(8, SNDCTL_DSP_GETOSPACE, 0x83045ac) = 0
write(8, "\200\200\200\200\200\200\200\200\200\200\200"..., 4096) = 4096
ioctl(8, SNDCTL_DSP_GETOSPACE, 0x83045ac) = 0
write(8, "\200\200\200\200\200\200\200\200\200\200\200"..., 4096) = 4096
ioctl(8, SNDCTL_DSP_GETOSPACE, 0x83045ac) = 0
write(8, "\200\200\200\200\200\200\200\200\200\200\200"..., 4096) = 4096
ioctl(8, SNDCTL_DSP_GETOSPACE, 0x83045ac) = 0
write(8, "\200\200\200\200\200\200\200\200\200\200\200"..., 4096) = 4096
ioctl(8, SNDCTL_DSP_GETOSPACE, 0x83045ac) = 0
write(8, "\200\200\200\200\200\200\200\200\200\200\200"..., 4096) = -1
EAGAIN (Resource temporarily unavailable)
write(2, "slDSP: write: Resource temporari"..., 47) = 47
ioctl(8, SNDCTL_DSP_GETOSPACE, 0x83045ac) = 0
write(8, "\200\200\200\200\200\200\200\200\200\200\200"..., 4096) = -1
EAGAIN (Resource temporarily unavailable)
write(2, "slDSP: write: Resource temporari"..., 47) = 47
==SNIP==
Runtime-wise, this happens shortly after the game opens /dev/js0, if that
helps any. This is also the first time in the strace that the program
writes to file handle 8, which is what open("/dev/dsp",...) got.
Right now this is looking really odd to me, but then again I don't have
much experience coding for sound ;)
Thanks for your help,
Chris Willis-Ford
On Mon, 16 Jul 2001, Steve Baker wrote:
> Chris Willis-Ford wrote:
>
> > slDSP: write: Resource temporarily unavailable
> > ...
> >
> > the slDSP line keeps going indefinitely, or at least until i press
> > control-C... any ideas? I have a feeling it may be related to my
> > particular sound card (driver)... I'm running an aureal vortex2, using the
> > 1.1.2 drivers found at http://sourceforge.net/projects/aureal
>
> It could be due to your window manager...I know that some 'enlightenment'
> WM's have audio mixers that open /dev/dsp0 and keep it open. There is
> generally a way to do that within the WM.
>
> > oh, and no other sound programs were running when i tried this, just in
> > case you were wondering... esd wasn't running, xmms wasn't running, "fuser
> > /dev/dsp" returned nothing, etc. etc. etc...
>
> Hmmm - well, the message is coming from the 'write' system call. I asked
> it to please open /dev/dsp0 (evidently it succeeded) - then I asked to write
> to the device and it says it can't...it's gotta be that something in the
> kernel thinks it's already open and being written to by someone else.
>
> ----------------------------- Steve Baker -------------------------------
> HomeMail : <sjb...@ai...> WorkMail: <sj...@li...>
> HomePage : http://web2.airmail.net/sjbaker1
> Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net
> http://agtoys.sf.net http://prettypoly.sf.net
> http://freeglut.sf.net http://toobular.sf.net
>
==================================================================
"Being able to see The Right Thing, then program it into existence
out of thin air is still the core wonder of programming for me."
-- John Carmack, id Software
|