MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / GetActiveSource

Function GetActiveSource

src/dotnetlib/LibCecSharp.cpp:524–530  ·  view source on GitHub ↗

Get the logical address of the device that is currently the active source on the CEC bus. The active source or CECDEVICE_UNKNOWN when unknown.

Source from the content-addressed store, hash-verified

522 /// </summary>
523 /// <returns>The active source or CECDEVICE_UNKNOWN when unknown.</returns>
524 CecLogicalAddress GetActiveSource()
525 {
526 if (!m_libCec) {
527 return CecLogicalAddress::Unknown;
528 }
529 return (CecLogicalAddress)m_libCec->GetActiveSource();
530 }
531
532 /// <summary>
533 /// Check whether a device is currently the active source on the CEC bus.

Callers 1

GetActiveSourceMethod · 0.85

Calls 1

GetActiveSourceMethod · 0.45

Tested by

no test coverage detected