mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
[AFV] Disabled the device output functions (not used)
Remark: might be used in AFV client, hence kept
This commit is contained in:
committed by
Mat Sutcliffe
parent
7d51bedc3e
commit
8848faadfa
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user