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

View File

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

View File

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

View File

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

View File

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

View File

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