mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
Ref T730, style
* set object name * use m_XYZ member name
This commit is contained in:
committed by
Mat Sutcliffe
parent
c604ced11c
commit
857e3581b0
@@ -30,7 +30,9 @@ namespace BlackCore
|
||||
CAudioOutputBuffer::CAudioOutputBuffer(ISampleProvider *sampleProvider, QObject *parent) :
|
||||
QIODevice(parent),
|
||||
m_sampleProvider(sampleProvider)
|
||||
{ }
|
||||
{
|
||||
this->setObjectName("CAudioOutputBuffer");
|
||||
}
|
||||
|
||||
qint64 CAudioOutputBuffer::readData(char *data, qint64 maxlen)
|
||||
{
|
||||
@@ -42,7 +44,7 @@ namespace BlackCore
|
||||
|
||||
for (float sample : buffer)
|
||||
{
|
||||
float absSample = qAbs(sample);
|
||||
const float absSample = qAbs(sample);
|
||||
if (absSample > m_maxSampleOutput) { m_maxSampleOutput = absSample; }
|
||||
}
|
||||
|
||||
@@ -80,7 +82,9 @@ namespace BlackCore
|
||||
}
|
||||
|
||||
Output::Output(QObject *parent) : QObject(parent)
|
||||
{ }
|
||||
{
|
||||
this->setObjectName("COutput");
|
||||
}
|
||||
|
||||
void Output::start(const CAudioDeviceInfo &outputDevice, ISampleProvider *sampleProvider)
|
||||
{
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace BlackCore
|
||||
|
||||
for (int i = 0; i < voiceInputNumber; i++)
|
||||
{
|
||||
auto voiceInput = new CallsignSampleProvider(audioFormat, this, m_mixer);
|
||||
const auto voiceInput = new CallsignSampleProvider(audioFormat, this, m_mixer);
|
||||
m_voiceInputs.push_back(voiceInput);
|
||||
m_mixer->addMixerInput(voiceInput);
|
||||
}
|
||||
|
||||
@@ -83,9 +83,8 @@ namespace BlackCore
|
||||
|
||||
private:
|
||||
uint m_frequencyHz = 122800000;
|
||||
bool m_mute = false;
|
||||
|
||||
const double m_clickGain = 1.0;
|
||||
bool m_mute = false;
|
||||
const double m_clickGain = 1.0;
|
||||
const double m_blockToneGain = 0.10;
|
||||
|
||||
quint16 m_id;
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace BlackCore
|
||||
|
||||
const QUuid m_networkVersion = QUuid("3a5ddc6d-cf5d-4319-bd0e-d184f772db80");
|
||||
|
||||
//Data
|
||||
// Data
|
||||
CClientConnectionData m_connection;
|
||||
|
||||
// Voice server
|
||||
|
||||
@@ -142,7 +142,7 @@ namespace BlackCore
|
||||
protected:
|
||||
CCoreFacadeConfig::ContextMode m_mode; //!< How context is used
|
||||
qint64 m_contextId; //!< unique identifer, avoid redirection rountrips
|
||||
bool m_debugEnabled = false; //!< debug messages enabled
|
||||
bool m_debugEnabled = false; //!< debug messages enabled
|
||||
|
||||
//! Constructor
|
||||
IContext(CCoreFacadeConfig::ContextMode mode, QObject *parent) :
|
||||
|
||||
Reference in New Issue
Block a user