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:
Klaus Basan
2019-09-19 00:56:54 +02:00
committed by Mat Sutcliffe
parent d064da13b5
commit 384aa3ce19
46 changed files with 2985 additions and 2916 deletions

View File

@@ -15,37 +15,26 @@ DEPENDPATH += . ..
DEFINES += LOG_IN_FILE BUILD_BLACKSOUND_LIB
HEADERS += \
blacksoundexport.h \
notificationplayer.h \
audioutilities.h \
selcalplayer.h \
soundgenerator.h \
threadedtonepairplayer.h \
tonepair.h \
wav/wavfile.h \
HEADERS += *.h
HEADERS += wav/wavfile.h
HEADERS += dsp/*.h
HEADERS += codecs/*.h
HEADERS += samplesprovider/*.h
SOURCES += \
notificationplayer.cpp \
audioutilities.cpp \
selcalplayer.cpp \
soundgenerator.cpp \
threadedtonepairplayer.cpp \
tonepair.cpp \
wav/wavfile.cpp \
SOURCES += *.cpp
SOURCES += wav/wavfile.cpp
SOURCES += dsp/*.cpp
SOURCES += codecs/*.cpp
SOURCES += samplesprovider/*.cpp
include ($$PWD/codecs/codecs.pri)
include ($$PWD/dsp/dsp.pri)
include ($$PWD/sampleprovider/sampleprovider.pri)
LIBS *= -lopus \
LIBS *= -lopus
DESTDIR = $$DestRoot/lib
DLLDESTDIR = $$DestRoot/bin
OTHER_FILES += ./share/sounds/*.wav ./share/sounds/readme.txt
COPY_FILES += $$PWD/share/sounds/*
RESOURCES +=
# RESOURCES +=
win32 {
dlltarget.path = $$PREFIX/bin

View File

@@ -31,4 +31,4 @@ private:
static constexpr int maxDataBytes = 4000;
};
#endif // OPUSENCODER_H
#endif // guard

View File

@@ -1,9 +0,0 @@
SOURCES += \
$$PWD/biquadfilter.cpp \
$$PWD/SimpleComp.cpp \
$$PWD/SimpleEnvelope.cpp \
HEADERS += \
$$PWD/SimpleComp.h \
$$PWD/SimpleEnvelope.h \
$$PWD/biquadfilter.h \

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
#include "pinknoisegenerator.h"
int PinkNoiseGenerator::readSamples(QVector<qint16> &samples, qint64 count)

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 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

View File

@@ -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;