X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fdevices%2FCECAudioSystem.h;h=8ab055e0bc7a520ca207ca20afdaf1ab7727c022;hb=d4a56bb9a13f82653a9d56a448671d0e8b5c8c42;hp=b171a09e44de06f88e4053cb4d2dbfb9db6b711a;hpb=e186a8436089dfa0f8a7cb65b00cbeb056923467;p=deb_libcec.git diff --git a/src/lib/devices/CECAudioSystem.h b/src/lib/devices/CECAudioSystem.h index b171a09..8ab055e 100644 --- a/src/lib/devices/CECAudioSystem.h +++ b/src/lib/devices/CECAudioSystem.h @@ -38,22 +38,25 @@ namespace CEC class CCECAudioSystem : public CCECBusDevice { public: - CCECAudioSystem(CCECProcessor *processor, cec_logical_address address, uint16_t iPhysicalAddress = 0); + CCECAudioSystem(CCECProcessor *processor, cec_logical_address address, uint16_t iPhysicalAddress = CEC_INVALID_PHYSICAL_ADDRESS); virtual ~CCECAudioSystem(void) {}; bool SetAudioStatus(uint8_t status); bool SetSystemAudioModeStatus(const cec_system_audio_status mode); - bool TransmitAudioStatus(cec_logical_address dest); - bool TransmitSetSystemAudioMode(cec_logical_address dest); - bool TransmitSystemAudioModeStatus(cec_logical_address dest); + bool TransmitAudioStatus(cec_logical_address dest, bool bIsReply); + bool TransmitSetSystemAudioMode(cec_logical_address dest, bool bIsReply); + bool TransmitSystemAudioModeStatus(cec_logical_address dest, bool bIsReply); - uint8_t VolumeUp(bool bSendRelease = true); - uint8_t VolumeDown(bool bSendRelease = true); - uint8_t MuteAudio(bool bSendRelease = true); + uint8_t VolumeUp(const cec_logical_address source, bool bSendRelease = true); + uint8_t VolumeDown(const cec_logical_address source, bool bSendRelease = true); + uint8_t MuteAudio(const cec_logical_address source); + uint8_t GetAudioStatus(const cec_logical_address initiator, bool bUpdate = false); bool TransmitActiveSource(void) { return false; } protected: + bool RequestAudioStatus(const cec_logical_address initiator, bool bWaitForResponse = true); + cec_system_audio_status m_systemAudioStatus; uint8_t m_audioStatus; };