[desktop-discuss] gst-mixer using AUDIODEV

Doug Scott dougs at truemail.co.th
Wed Aug 15 23:17:36 PDT 2007


Hey,
   Just looking at the JDS patched gst-mixer code. It seems to be 
inconsistent with the man pages for other commands.
Adding the '/dev/' is not required. The mixerctl man page states that 
the AUDIODEV environment contains the full path name.

Doug

gnome-media-2.18.0/gst-mixer/src/track.c
   with patch gnome-media-03-supportdevices.diff

     audiodev = g_getenv ("AUDIODEV");
     if (audiodev == NULL) {
       mixer_fd = open ("/dev/audioctl", O_RDWR | O_NONBLOCK);
     } else {
       gchar *device = g_strdup_printf ("/dev/%sctl", audiodev);
       mixer_fd = open (device, O_RDWR | O_NONBLOCK);
       g_free (device);
     }


doug at prae> man mixerctl
.....
ENVIRONMENT VARIABLES
     AUDIODEV     If the -d and -a options are not specified, the
                  AUDIODEV  environment variable is consulted. If
                  set, AUDIODEV will contain the full  path  name
                  of the user's default audio device. The default
                  audio device will be converted into  a  control
                  device, and then used. If the AUDIODEV variable
                  is not set, /dev/audioctl is used.

FILES
     /dev/audioctl
     /dev/sound/{0...n}ctl


More information about the desktop-discuss mailing list