mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-05 20:58:33 +02:00
zapit, libcoolstream: determine audio mute status
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@439 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -467,6 +467,16 @@ void CZapitClient::muteAudio(const bool mute)
|
||||
|
||||
close_connection();
|
||||
}
|
||||
// Get mute status
|
||||
bool CZapitClient::getMuteStatus()
|
||||
{
|
||||
CZapitMessages::commandBoolean msg;
|
||||
|
||||
send(CZapitMessages::CMD_GET_MUTE_STATUS, (char*)&msg, sizeof(msg));
|
||||
CBasicClient::receive_data((char*)&msg, sizeof(msg));
|
||||
close_connection();
|
||||
return msg.truefalse;
|
||||
}
|
||||
|
||||
void CZapitClient::setVolume(const unsigned int left, const unsigned int right)
|
||||
{
|
||||
|
Reference in New Issue
Block a user