[AFV] Disabled the device output functions (not used)

Remark: might be used in AFV client, hence kept
This commit is contained in:
Klaus Basan
2020-04-23 22:58:07 +02:00
committed by Mat Sutcliffe
parent 7d51bedc3e
commit 8848faadfa
6 changed files with 12 additions and 0 deletions

View File

@@ -86,6 +86,7 @@ namespace BlackCore
return true;
}
/*
double CInput::getDeviceInputVolume() const
{
if (m_audioInput) { return static_cast<double>(m_audioInput->volume()); }
@@ -99,6 +100,7 @@ namespace BlackCore
m_audioInput->setVolume(v);
return true;
}
*/
void CInput::start(const CAudioDeviceInfo &inputDevice)
{

View File

@@ -106,10 +106,12 @@ namespace BlackCore
bool setVolume(double volume);
//! @}
/* disabled as not needed
//! The device's volume 0..1 @{
double getDeviceInputVolume() const;
bool setDeviceInputVolume(double volume);
//! @}
*/
//! Started?
bool started() const { return m_started; }

View File

@@ -132,6 +132,7 @@ namespace BlackCore
}
}
/*
double COutput::getDeviceOutputVolume() const
{
if (m_audioOutput && m_started) { return static_cast<double>(m_audioOutput->volume()); }
@@ -145,6 +146,7 @@ namespace BlackCore
m_audioOutput->setVolume(v);
return true;
}
*/
} // ns
} // ns

View File

@@ -89,10 +89,12 @@ namespace BlackCore
//! Corresponding device
const BlackMisc::Audio::CAudioDeviceInfo &device() const { return m_device; }
/* disabled as not used
//! The device's volume 0..1 @{
double getDeviceOutputVolume() const;
bool setDeviceOutputVolume(double volume);
//! @}
*/
signals:
//! Streaming data

View File

@@ -388,6 +388,7 @@ namespace BlackCore
});
}
/*
double CAfvClient::getDeviceInputVolume() const
{
if (m_input) { return m_input->getDeviceInputVolume(); }
@@ -411,6 +412,7 @@ namespace BlackCore
if (m_output) { return m_output->setDeviceOutputVolume(volume); }
return false;
}
*/
void CAfvClient::setReceiveAudio(bool receive)
{

View File

@@ -133,12 +133,14 @@ namespace BlackCore
//! \threadsafe
bool isComUnitIntegrated() const { return m_integratedComUnit; }
/*
//! The device's volume 0..1 @{
double getDeviceInputVolume() const;
bool setDeviceInputVolume(double volume);
double getDeviceOutputVolume() const;
bool setDeviceOutputVolume(double volume);
//! @}
*/
//! Receive audio
//! \threadsafe