mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-09 22:58:28 +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
Origin commit data
------------------
Commit: 23dabb17a2
Author: yjogol <yjogol2@online.de>
Date: 2010-03-01 (Mon, 01 Mar 2010)
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