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

Method AudioEnable

src/libcec/devices/CECAudioSystem.cpp:211–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211bool CCECAudioSystem::AudioEnable(CCECBusDevice* device, bool bEnable /* = true */)
212{
213 cec_logical_address iLogicalAddress = device->GetLogicalAddress() ?
214 device->GetLogicalAddress() : CECDEVICE_UNKNOWN;
215 uint16_t physicalAddress = bEnable ? device->GetCurrentPhysicalAddress() :
216 CEC_INVALID_PHYSICAL_ADDRESS;
217
218 return m_handler->TransmitSystemAudioModeRequest(iLogicalAddress, physicalAddress);
219}

Callers

nothing calls this directly

Calls 3

GetLogicalAddressMethod · 0.45

Tested by

no test coverage detected