Re: Esound, Popt
- From: sopwith redhat com (Elliot Lee)
- To: gnome-list gnome org
- Subject: Re: Esound, Popt
- Date: 5 Sep 1999 03:01:58 GMT
On 4 Sep 1999 06:08:02 -0400, Canek Peláez Valdés
<canek@abulafia.fciencias.unam.mx> wrote:
>The thing is, Snes9X needs the /dev/dsp device and it's not Esound
>compliant. So, before exec()'d Snes9X, I call esd_standby, and after I call
>esd_resume (using gnome_sound_connection, of course).
>
>In the first place, that doesn't work _ever_ with non-root users. With
>"ever" I meant that sometimes works, and sometimes not. I can't reproduce
>it.
>
>If I run esd with the '-terminate' option (or doing the same thing with the
>ESD_SPAWN_OPTIONS environment variable), it always works (but I'm not sure
>if it works because the esd_standby/resume functions, or because the daemon
>frees the device).
>
>So, my first question is if those functions (esd_standby/resume) work in
>the same way for root and non-root users.
The main thing is that to talk to esd, you need to be authenticated, and
the authentication is for one-user-only, so if you have run esd as root,
all the esd clients need to run as root too.
>My second question is if the gnome_sound_init() function is called
>automatically by gnome_init() and gnome_init_with_popt_table() functions,
>because if my program doesn't call the function by itself, then VERY
>strange things happen.
In the standard gnome-libs, gnome_sound_init is called unless
--disable-sound is passed on the command line.
In the gnome-libs shipped with Red Hat Linux, gnome_sound_init is not
called if --disable-sound is passed on the command line, or the "use sound
events" setting is turned off (the default in RHL gnome-libs).
>Then, if every app that requires sound needs to call gnome_sound_init, it
>will be nice that it could use the default option for get the
>hostname... but I can't get the HOSTNAME option using the popt functions
>(or I can't find the correct function).
>
>Currently, I'm using the old simple method:
>
>for (i = 0; i < argc; i++) {
> if (!strncmp ("--espeaker=", argv[i], strlen ("--espeaker=")))
> etc...
>
>There is a popt-related function that do it for me?
You can catch it yourself using the standard popt mechanism - more than
one popt table entry can catch the same option.
-- Elliot
cracking radar genetic [Hello to all my fans in domestic surveillance]
FBI Nazi smuggle Kennedy North Korea Semtex Panama World Trade Center
Ft. Bragg BATF spy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]