InputSignalNotify

Supported Hardware Devices: Pro Capture cards

Contents Demonstrated in the Sample:

  1. Monitoring capture card input signal changes
  2. Channel selection via command parameters when multiple devices are available

Call Logic:

  1. Obtain version information, initialize, and enumerate devices: MWGetVersion, MWCaptureInitInstance, MWRefreshDevice, MWGetChannelCount
  2. Open the device:
    1. Open the device specified by command parameters: MWOpenChannel
    2. When no device is specified in command parameters, open the first available channel by default: MWGetDevicePath, MWOpenChannelByPath
  3. Retrieve channel information: MWGetChannelInfo
  4. Create video input signal change monitoring thread
  5. Create audio input signal change monitoring thread
  6. Exit video input signal change monitoring thread
  7. Exit audio input signal change monitoring thread
  8. Release resources: MWCloseChannel, MWCaptureExitInstance

Video Input Signal Change Monitoring Thread:

  1. Create event: MWCreateEvent
  2. Register notification: MWRegisterNotify
  3. Wait for event: MWMultiWaitEvent
  4. Retrieve video signal status: MWGetVideoSignalStatus
  5. Unregister notification: MWUnregisterNotify
  6. Close event: MWCloseEvent

Audio Input Signal Change Monitoring Thread:

  1. Create event: MWCreateEvent
  2. Register notification: MWRegisterNotify
  3. Wait for event: MWMultiWaitEvent
  4. Retrieve audio signal status: MWGetAudioSignalStatus
  5. Unregister notification: MWUnregisterNotify
  6. Close event: MWCloseEvent

Result:

Result

Flowchart:

InputSignalNotify Flowchart

results matching ""

    No results matching ""

    results matching ""

      No results matching ""