mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +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;
|
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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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; }
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user