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

Method RequestSystemAudioModeStatus

src/libcec/devices/CECAudioSystem.cpp:155–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155bool CCECAudioSystem::RequestSystemAudioModeStatus(const cec_logical_address initiator, bool bWaitForResponse /* = true */)
156{
157 bool bReturn(false);
158
159 if (!IsHandledByLibCEC() &&
160 !IsUnsupportedFeature(CEC_OPCODE_GIVE_SYSTEM_AUDIO_MODE_STATUS))
161 {
162 MarkBusy();
163 LIB_CEC->AddLog(CEC_LOG_DEBUG, "<< requesting system audio mode status of '%s' (%X)", GetLogicalAddressName(), m_iLogicalAddress);
164 bReturn = m_handler->TransmitRequestSystemAudioModeStatus(initiator, m_iLogicalAddress, bWaitForResponse);
165 MarkReady();
166 }
167 return bReturn;
168}
169
170uint8_t CCECAudioSystem::GetAudioStatus(const cec_logical_address initiator, bool bUpdate /* = false */)
171{

Callers

nothing calls this directly

Calls 2

AddLogMethod · 0.45

Tested by

no test coverage detected