mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +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
@@ -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
|
||||
|
||||
@@ -31,4 +31,4 @@ private:
|
||||
static constexpr int maxDataBytes = 4000;
|
||||
};
|
||||
|
||||
#endif // OPUSENCODER_H
|
||||
#endif // guard
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
SOURCES += \
|
||||
$$PWD/biquadfilter.cpp \
|
||||
$$PWD/SimpleComp.cpp \
|
||||
$$PWD/SimpleEnvelope.cpp \
|
||||
|
||||
HEADERS += \
|
||||
$$PWD/SimpleComp.h \
|
||||
$$PWD/SimpleEnvelope.h \
|
||||
$$PWD/biquadfilter.h \
|
||||
@@ -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