Ref T730, style

* avoid float, use double
* const correctness
* use fuzzyCompare for float/double
This commit is contained in:
Klaus Basan
2019-09-22 17:12:24 +02:00
committed by Mat Sutcliffe
parent e21fdeb039
commit 7c765654c0
7 changed files with 51 additions and 90 deletions

View File

@@ -58,7 +58,7 @@ namespace BlackCore
void CAudioInputBuffer::timerEvent(QTimerEvent *event)
{
Q_UNUSED(event);
Q_UNUSED(event)
// 20 ms = 960 samples * 2 bytes = 1920 Bytes
if (m_buffer.size() >= 1920)
{
@@ -75,31 +75,6 @@ namespace BlackCore
m_encoder.setBitRate(16 * 1024);
}
bool CInput::started() const
{
return m_started;
}
int CInput::opusBytesEncoded() const
{
return m_opusBytesEncoded;
}
void CInput::setOpusBytesEncoded(int opusBytesEncoded)
{
m_opusBytesEncoded = opusBytesEncoded;
}
double CInput::volume() const
{
return m_volume;
}
void CInput::setVolume(double volume)
{
m_volume = volume;
}
void CInput::start(const QAudioDeviceInfo &inputDevice)
{
if (m_started) { return; }