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

Method GetSystemAudioModeStatus

src/libcec/devices/CECAudioSystem.cpp:191–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191uint8_t CCECAudioSystem::GetSystemAudioModeStatus(const cec_logical_address initiator, bool bUpdate /* = false */)
192{
193 bool bIsPresent(GetStatus() == CEC_DEVICE_STATUS_PRESENT);
194 bool bRequestUpdate(false);
195 {
196 CLockObject lock(m_mutex);
197 bRequestUpdate = bIsPresent &&
198 (bUpdate || m_systemAudioModeStatus == CEC_SYSTEM_AUDIO_STATUS_UNKNOWN);
199 }
200
201 if (bRequestUpdate)
202 {
203 CheckVendorIdRequested(initiator);
204 RequestSystemAudioModeStatus(initiator);
205 }
206
207 CLockObject lock(m_mutex);
208 return m_systemAudioModeStatus;
209}
210
211bool CCECAudioSystem::AudioEnable(CCECBusDevice* device, bool bEnable /* = true */)
212{

Callers 1

SystemAudioModeStatusMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected