On Feb 28 09:31:06, a...@caoua.org wrote:
> On Wed, Feb 27, 2013 at 08:47:20PM +0100, Jan Stary wrote:
> > 
> > The audio plays fine, but why is this:
> > 
> >   /tmp/aucat-1000/aucat0: No such file or directory
> > 
> > Indeed, there is no /tmp/aucat-1000/aucat0 (1000 is my userid),
> > but there is /tmp/aucat/aucat0; is this something from the
> > past of sndio, when it used userid in the socket name?
> 
> programs using libsndio try to connect to the per-user sndiod
> server first, then the system-wide server. This allows any regular
> user with no root privileges to bypass the system-wide server and
> use her/his own setup.

Thanks for the explanation. Can we slightly
unconfuse the DEBUGing user with the diff below?

Index: aucat.c
===================================================================
RCS file: /cvs/src/lib/libsndio/aucat.c,v
retrieving revision 1.56
diff -u -p -r1.56 aucat.c
--- aucat.c     23 Nov 2012 07:03:28 -0000      1.56
+++ aucat.c     28 Feb 2013 09:07:55 -0000
@@ -361,6 +361,7 @@ aucat_connect_un(struct aucat *hdl, unsi
                break;
        }
        hdl->fd = s;
+       DPRINTF("%s: connected\n", ca.sun_path);
        return 1;
 }

The DEBUGing output then becomes

  /tmp/aucat-1000/aucat0: No such file or directory
  /tmp/aucat/aucat0: connected
 
(Should something similar go to aucat_connect_tcp() as well?)

        Jan

Reply via email to