Re: Access vista component devices of playback devices like microphone, linein, front mic etc in vc++



On Sat, 2 Aug 2008 03:54:53 -0700 (PDT), vinaykabadi wrote:

"pEndpoint" has the pointer to speaker endpoint device. Now I need to
access its components like microphone, front mic, line in, rear ,
front etc.

You can walk the connections from the endpoint back to the bus to see
everything in between. You can use the sample function
SelectCaptureDevice() that is in the help under "Device Topologies" as a
reference. You just have to change it from Capture to Render and eliminate
the part that looks for the Mux.

Be advised however that these input lines may no longer be part of the
render device topology as they were in XP. It varies by audio device but
with my on-board system they are no longer connected.

--
http://www.chrisnet.net/code.htm
[MS MVP for DirectShow / MediaFoundation]
.


Loading