- cec_command command;
- cec_command::format(command, m_iLogicalAddress, dest, CEC_OPCODE_SYSTEM_AUDIO_MODE_STATUS);
- command.parameters.push_back((uint8_t) m_systemAudioStatus);
+ return m_handler->TransmitSystemAudioModeStatus(m_iLogicalAddress, dest, state);
+}
+
+uint8_t CCECAudioSystem::VolumeUp(void)
+{
+ if (TransmitKeypress(CEC_USER_CONTROL_CODE_VOLUME_UP))
+ TransmitKeyRelease();
+
+ CLockObject lock(&m_mutex);
+ return m_audioStatus;
+}
+
+uint8_t CCECAudioSystem::VolumeDown(void)
+{
+ if (TransmitKeypress(CEC_USER_CONTROL_CODE_VOLUME_DOWN))
+ TransmitKeyRelease();
+
+ CLockObject lock(&m_mutex);
+ return m_audioStatus;
+}
+
+uint8_t CCECAudioSystem::MuteAudio(void)
+{
+ if (TransmitKeypress(CEC_USER_CONTROL_CODE_MUTE))
+ TransmitKeyRelease();