In the process of building a Digital TV graph, I need:
Network Provider -> Tuner -> Capture -> MPEG2-Demux -> MPEG2 TIF
-> MPEG2 Sections
-> Video Decoder -> VMR9
-> Audio Decoder -> DirectSound
It's obvious to me that I can hard-code in the name of the provider (Microsoft Network Provider
), but do I need to prompt the user to select both a tuner and a capture device from the list of available devices, or can I somehow query for the tuner that corresponds to the capture device that the user has selected?
Basically I'm asking whether an API call exists similar to:
IMoniker *pTuner = GetTunerForCaptureDevice(pIMonikerSelectedCaptureDevice);
or whether it's standard to make the user choose both the tuner and the capture devices in their config.