GNOME Bugzilla – Bug 383596
mixer doesnot work if set AUDIODEV on solaris
Last modified: 2006-12-08 14:44:52 UTC
Please describe the problem: If I set AUDIODEV environment on solaris, gnome-volume-controller can not be started Steps to reproduce: 1. set AUDIODEV to /dev/audio 2. start gnome-volume-control 3. Actual results: an error dialog popup said that no device found Expected results: it works Does this happen every time? yes Other information: patch for this --- gstsunaudiomixer.c.old Wed May 3 17:26:52 2006 +++ gstsunaudiomixer.c Thu Dec 7 15:56:56 2006 @@ -86,7 +86,7 @@ if (audiodev == NULL) { this->mixer = gst_sunaudiomixer_ctrl_new ("/dev/audioctl"); } else { - gchar *device = g_strdup_printf ("/dev/%sctl", audiodev); + gchar *device = g_strdup_printf ("%sctl", audiodev); this->mixer = gst_sunaudiomixer_ctrl_new (device); g_free (device);
Thanks, committed: * sys/sunaudio/gstsunaudiomixer.c: (gst_sunaudiomixer_change_state): Construct the correct mixer device name when the AUDIODEV env var is set. Patch by: Jerry Tan <jerry.tan at sun dot com> Fixes: #383596