[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: No sound with SDL apps



On Thursday 15 April 2004 10:06, you wrote:
> > You don't say what desktop environment you're running, but if it has a
> > sound daemon (such as aRTS in KDE), it's very possible the sound daemon
> > has control of the audio device, and SDL can't use it.  aRTS has a
> > setting that releases the sound card device after a certain time
> > period, usually one minute.  Try launching frozen-bubble after aRTS
> > releases the sound card.
>
> im using GNOME, so if anything it would be ESD, but i have it disabled,
> and it doesnt turn up on ps -a
>
Since you're not using ESD, this probably isn't your problem:
http://lists.debian.org/debian-user/2002/debian-user-200206/msg02461.html

However, it may be worth checking that you've got all the appropriate SDL 
packages installed.

> > If you're not using a sound daemon, what output plugin is XMMS using,
> > and are you running XMMS at the same time?
>
> OSS, and no, not at the same time
>
> If it helps, ive also had trouble running more than 1 app with ESD
> (before i disbled it), for instance XMMS using ESD plugin and Rhythmbox
> (gstreamer set to ESD), XMMS said something about the audio device being
> unavalible, could this be based on the same problem?
>
It sounds like it is, though I thought ESD was supposed to fix such problems 
and allow multiple programs access to the sound card at once.

> also, when i first installed the permission on /dev/dsp etc were all
> wrong, i changed them by hand however perhaps there was something i
> didnt know to change
>
> thanks for your swift reply
>
> Keir Lawson

Well, my /dev/dsp is a link pointing to /dev/dsp0, and the latter looks like 
this:
# ls -l /dev/dsp0
crw-rw----    1 root     audio     14,   3 Apr  1 15:03 /dev/dsp0
but keep in mind I'm using 2.6.5, so if you're on a 2.4 series, your device 
files may be quite different (I'm not totally up to speed on those 
changes).

I wouldn't suspect device problems, if some applications can use the sound 
card, unless those applications are running as root, or frozen-bubble is 
running as a non-root, non-you user (not likely).

What happens if you set the environment variable "SDL_AUDIODRIVER" to "esd" 
when using ESD?  Or does nothing work with ESD?

If all else fails, set the SDL_DEBUG environment variable and start 
frozen-bubble from the command line, and paste the output.

Justin Guerin



Reply to: