InputSource
Supported Hardware Devices: Pro Capture cards, USB Capture devices
Contents Demonstrated in the Sample:
- Retrieving audio and video input source information
- Channel selection via command parameters when multiple devices are available
Call Logic:
- Obtain version information, initialize, and enumerate devices: MWGetVersion, MWCaptureInitInstance, MWRefreshDevice, MWGetChannelCount
- Open the device:
- Open the device specified by command parameters: MWOpenChannel
- When no device is specified in command parameters, open the first available channel by default: MWGetDevicePath, MWOpenChannelByPath
- Retrieve channel information: MWGetChannelInfo
- Retrieve video input array and video input source: MWGetVideoInputSourceArray, MWGetVideoInputSource
- Retrieve audio input array and audio input source: MWGetAudioInputSourceArray, MWGetAudioInputSource
- Release resources: MWCloseChannel, MWCaptureExitInstance
Result:

Flowchart:
