Hi all.<br>
<br>
I have actually two questions ::<br>
<br>
a)<br>
How can one get the know the sound-device name used by a particular sound-driver?<br>
<br>
For eg., there are multiple entries in "/dev/snd" "virtual" filesystem
on my machine; however, I am not sure as to which device-file is used by
which driver?<br>
<br>
I guess, there would be a way to do this via gstreamer-api; however, I
am not sure. Doing it via a shell-script would be awesome <img src="http://static.linuxquestions.org/questions/images/smilies/smile.gif" alt="" title="Smilie" class="inlineimg" border="0"><br>
<br>
<br>
<br>
b)<br>
Secondly, (more importantly), how can one "programmatically" find out as to which sound-device is functional?<br>
<br>
I will take an example here ::<br>
<br>
When I try "gst-launch filesrc location=/path/to/mp3 ! mad ! pulsesink",
I am able to play the mp3 fine on one machine, but not on another, <b>even though doing "pulseaudio --check" on both machines, gives "0" as the exit status.</b><br>
<br>
<br>
<br>
<br>
So, in summary, I would like to know as to which all sound-device(s) is(are) functional, and then accordingly use the <b>corresponding</b> sound-driver(s) in my application.<br>
<br>
<br>
<br>
Will be grateful for a reply.<br>
<br>
<br>
<br>
Thanks and Regards,<br>
Ajay