mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
Ref T730, namespace for BlackCore::Afv
* added namespace * removed some *.pri files and added files to blackcore.pro * added copyright etc.
This commit is contained in:
committed by
Mat Sutcliffe
parent
d064da13b5
commit
384aa3ce19
@@ -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
|
||||
|
||||
#include "pinknoisegenerator.h"
|
||||
|
||||
int PinkNoiseGenerator::readSamples(QVector<qint16> &samples, qint64 count)
|
||||
|
||||
@@ -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 PINKNOISEGENERATOR_H
|
||||
#define PINKNOISEGENERATOR_H
|
||||
|
||||
@@ -9,11 +19,13 @@
|
||||
|
||||
#include <array>
|
||||
|
||||
//! Pink noise generator
|
||||
class BLACKSOUND_EXPORT PinkNoiseGenerator : public ISampleProvider
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Noise generator
|
||||
PinkNoiseGenerator(QObject *parent = nullptr) : ISampleProvider(parent) {}
|
||||
|
||||
virtual int readSamples(QVector<qint16> &samples, qint64 count) override;
|
||||
@@ -26,4 +38,4 @@ private:
|
||||
double m_gain = 0.0;
|
||||
};
|
||||
|
||||
#endif // PINKNOISEGENERATOR_H
|
||||
#endif // guard
|
||||
|
||||
@@ -5,11 +5,13 @@
|
||||
#include "sampleprovider.h"
|
||||
#include "resourcesound.h"
|
||||
|
||||
//! A sample provider
|
||||
class BLACKSOUND_EXPORT ResourceSoundSampleProvider : public ISampleProvider
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Ctor
|
||||
ResourceSoundSampleProvider(const ResourceSound &resourceSound, QObject *parent = nullptr);
|
||||
|
||||
virtual int readSamples(QVector<qint16> &samples, qint64 count) override;
|
||||
|
||||
Reference in New Issue
Block a user