mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user