<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Hello,<br>
<br>
I am writing a small sound-recording application/applet in C. It will
do approx. the same task as this command line.<br>
$ gst-launch-0.10 pulsesrc device="xxxx" ! queue ! audioconvert !
vorbisenc ! oggmux ! filesink location=test.oga<br>
<br>
My platform is GNOME on Ubuntu-Linux 10.04.<br>
<br>
In my GTK app, I would like to fill a listbox with names and
description of the "Source" devices; such as <br>
"Audio card X"<br>
"Micro phone 1"<br>
so the user can select the source of the recording. See the devive=
parameter in the above command line.<br>
<br>
How can I find the device names + description using c and GStreamer
libraries? <br>
<br>
I have poked the "gstreamer-properties" application and it finds the
device names like <br>
<br>
PulseAudio Audio Source (pulsesrc):<br>
Device name: alsa_output.pci-0000_04_02.0.analog-stereo.monitor&nbsp; <br>
Description: Unknown<br>
<br>
PulseAudio Audio Source (pulsesrc):<br>
Device name: device alsa_input.usb-046d_089d-01-U0x46d0x89d.analog-mono
<br>
Description: Unknown<br>
<br>
The device name is ok, but the human readable description is
empty/"Unknown".<br>
<br>
See this picture:<br>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<a href="http://www.futuredesktop.com/tmp/audio-recorder/picture1.png">http://www.futuredesktop.com/tmp/audio-recorder/picture1.png</a><br>
The device description for Source #0 and #1 are set to "Unknown".<br>
<br>
However the "pactl list" command shows the description right.<br>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<a href="http://www.futuredesktop.com/tmp/audio-recorder/picture2.png">http://www.futuredesktop.com/tmp/audio-recorder/picture2.png</a><br>
Source #0<br>
&nbsp;State: RUNNING<br>
&nbsp;Name: alsa_output.pci-0000_04_02.0.analog-stereo.monitor&nbsp; &lt;-- I
WANT THIS<br>
&nbsp;Description: Monitor of SB0400 Audigy2 Value Analog Stereo &lt;--- AND
THIS<br>
<br>
Source #1<br>
&nbsp;State: SUSPENDED<br>
&nbsp;Name: alsa_input.usb-046d_089d-01-U0x46d0x89d.analog-mono &lt;- I WANT
THIS<br>
&nbsp;Description: QuickCam E2500 series Analog Mono &lt;--- AND THIS<br>
<br>
Test code:<br>
<a class="moz-txt-link-freetext" href="http://www.futuredesktop.com/tmp/audio-recorder/t1.c">http://www.futuredesktop.com/tmp/audio-recorder/t1.c</a><br>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<a href="http://www.futuredesktop.com/tmp/audio-recorder/"></a><br>
Kindly<br>
&nbsp; Gstreamer newbie.<br>
&nbsp; Moma Antero M (osmo)<br>
&nbsp; <a class="moz-txt-link-abbreviated" href="http://www.futuredesktop.org">www.futuredesktop.org</a> (com)<br>
<br>
<br>
</body>
</html>