On Tue, 2011-09-20 at 10:07 +0300, Lin, Mengdong wrote:
> Does PA provide an API that can to set the active port on a
> sink/source?
http://freedesktop.org/software/pulseaudio/doxygen/introspect_8h.html
pa_context_set_{sink,source}_port_by_{index,name}()
--
Tanu