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

Method SendVolumeUp

src/libcec/CECClient.cpp:728–746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

726}
727
728uint8_t CCECClient::SendVolumeUp(bool bSendRelease /* = true */)
729{
730 cec_logical_address primary(GetPrimaryLogicalAddress());
731 CCECAudioSystem* audio(m_processor->GetAudioSystem());
732
733 if (primary == CECDEVICE_UNKNOWN)
734 return (uint8_t)CEC_AUDIO_VOLUME_STATUS_UNKNOWN;
735
736 if (!audio || !audio->IsPresent())
737 {
738 CCECTV* tv(m_processor->GetTV());
739 tv->TransmitVolumeUp(primary, bSendRelease);
740 return (uint8_t)CEC_AUDIO_VOLUME_STATUS_UNKNOWN;
741 }
742 else
743 {
744 return audio->VolumeUp(primary, bSendRelease);
745 }
746}
747
748uint8_t CCECClient::SendVolumeDown(bool bSendRelease /* = true */)
749{

Callers 1

VolumeUpMethod · 0.80

Calls 5

GetAudioSystemMethod · 0.80
IsPresentMethod · 0.80
GetTVMethod · 0.80
TransmitVolumeUpMethod · 0.80
VolumeUpMethod · 0.45

Tested by

no test coverage detected