Ref T730, code style, adding namespaces

This commit is contained in:
Klaus Basan
2019-09-21 03:29:58 +02:00
committed by Mat Sutcliffe
parent 329b1e8c9a
commit 99edc9cb13
47 changed files with 1136 additions and 801 deletions

View File

@@ -1,3 +1,13 @@
/* Copyright (C) 2019
* swift project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
* or distributed except according to the terms contained in the LICENSE file.
*/
//! \file
#ifndef MIXINGSAMPLEPROVIDER_H
#define MIXINGSAMPLEPROVIDER_H
@@ -6,16 +16,22 @@
#include <QSharedPointer>
#include <QVector>
class BLACKSOUND_EXPORT MixingSampleProvider : public ISampleProvider
namespace BlackSound
{
public:
MixingSampleProvider(QObject * parent = nullptr) : ISampleProvider(parent) {}
namespace SampleProvider
{
class BLACKSOUND_EXPORT CMixingSampleProvider : public ISampleProvider
{
public:
CMixingSampleProvider(QObject *parent = nullptr) : ISampleProvider(parent) {}
void addMixerInput(ISampleProvider *provider) { m_sources.append(provider); }
virtual int readSamples(QVector<qint16> &samples, qint64 count) override;
void addMixerInput(ISampleProvider *provider) { m_sources.append(provider); }
virtual int readSamples(QVector<qint16> &samples, qint64 count) override;
private:
QVector<ISampleProvider*> m_sources;
};
private:
QVector<ISampleProvider *> m_sources;
};
}
}
#endif // MIXINGSAMPLEPROVIDER_H
#endif // guard