[gstreamer-bugs] [Bug 405020] alsasrc's GstPropertyProbe for device-name doesn't seem to work correctly
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Wed Feb 7 00:42:18 PST 2007
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded). You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=405020
GStreamer | gst-plugins-base | Ver: 0.10.10
------- Comment #5 from Snark 2007-02-07 08:40 UTC -------
I can snd_ctl_open "hw:0", but not "hw:0,1"... and of course, I only have the
later available as the device in alsasrc.
The following piece of code :
if (snd_ctl_open (&ctl, "hw:0", 0))
printf ("Open failed!\n");
else {
printf ("Open succeeded!\n");
snd_ctl_card_info_malloc (&info);
snd_card_get_name (snd_ctl_card_info_get_card (info), &name);
printf ("Name : %s\n", name);
free (name);
snd_ctl_card_info_free (info);
snd_ctl_close (ctl);
}
Prints :
Open succeeded!
Name : SiS SI7012
Which is what we want...
I really like how crystal clear the ALSA api is...
--
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
More information about the Gstreamer-bugs
mailing list