<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><div>Le mardi 26 mars 2019 à 13:08 -0500, Carl Karsten a écrit :</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><div>How should my python code test to see if "hw:1,0" is a valid alsa device?</div><div>source if it matters.<br></div><div><br></div><div>or whatever string gets passed to my app:</div><div> <a href="https://github.com/CarlFK/voctomix-outcasts/blob/master/ingest.py#L216">https://github.com/CarlFK/voctomix-outcasts/blob/master/ingest.py#L216</a></div><div><br></div><div>The plan is if it fails the test, fall back to audiotestsrc</div></div></blockquote><div><br></div><div>You could simply set alsasrc, configured with that device string, to READY state and check the return value. It will fail synchronously if the device does not exist. For device enumeration, there is GstDeviceMonitor, but there is no alsa provider yet, contribution welcome.</div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><div><div><div><br></div><div></div><div><br></div><pre>_______________________________________________</pre><pre>gstreamer-devel mailing list</pre><a href="mailto:gstreamer-devel@lists.freedesktop.org"><pre>gstreamer-devel@lists.freedesktop.org</pre></a><pre><br></pre><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"><pre>https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</pre></a></div></div></div></blockquote></body></html>