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

Method TransmitSetStreamPath

src/libcec/implementations/CECCommandHandler.cpp:1164–1177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1162}
1163
1164bool CCECCommandHandler::TransmitSetStreamPath(uint16_t iStreamPath, bool bIsReply)
1165{
1166 if (m_busDevice->GetLogicalAddress() != CECDEVICE_TV)
1167 {
1168 LIB_CEC->AddLog(CEC_LOG_ERROR, "only the TV is allowed to send CEC_OPCODE_SET_STREAM_PATH");
1169 return false;
1170 }
1171 cec_command command;
1172 cec_command::Format(command, m_busDevice->GetLogicalAddress(), CECDEVICE_BROADCAST, CEC_OPCODE_SET_STREAM_PATH);
1173 command.parameters.PushBack((uint8_t) ((iStreamPath >> 8) & 0xFF));
1174 command.parameters.PushBack((uint8_t) (iStreamPath & 0xFF));
1175
1176 return Transmit(command, false, bIsReply);
1177}
1178
1179bool CCECCommandHandler::TransmitSystemAudioModeStatus(const cec_logical_address iInitiator, const cec_logical_address iDestination, cec_system_audio_status state, bool bIsReply)
1180{

Callers 1

SetStreamPathMethod · 0.80

Calls 3

GetLogicalAddressMethod · 0.45
AddLogMethod · 0.45
PushBackMethod · 0.45

Tested by

no test coverage detected