5 Commits
0.1.1 ... 0.2.0

21 changed files with 59 additions and 62 deletions

View File

@@ -24,7 +24,7 @@
*/
#include <audio/algo/chunkware/AttRelEnvelope.h>
#include <audio/algo/chunkware/AttRelEnvelope.hpp>
audio::algo::chunkware::AttRelEnvelope::AttRelEnvelope(double _attackms, double _releasems, double _sampleRate) :
m_attack(_attackms, _sampleRate),

View File

@@ -24,7 +24,7 @@
*/
#pragma once
#include <audio/algo/chunkware/EnvelopeDetector.h>
#include <audio/algo/chunkware/EnvelopeDetector.hpp>
namespace audio {
namespace algo {

View File

@@ -23,8 +23,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include <audio/algo/chunkware/Compressor.h>
#include <audio/algo/chunkware/debug.h>
#include <audio/algo/chunkware/Compressor.hpp>
#include <audio/algo/chunkware/debug.hpp>
#include <cmath>
audio::algo::chunkware::Compressor::Compressor() :

View File

@@ -24,10 +24,10 @@
*/
#pragma once
#include <etk/types.h>
#include <audio/format.h>
#include <audio/algo/chunkware/AttRelEnvelope.h>
#include <audio/algo/chunkware/Gain.h>
#include <etk/types.hpp>
#include <audio/format.hpp>
#include <audio/algo/chunkware/AttRelEnvelope.hpp>
#include <audio/algo/chunkware/Gain.hpp>
namespace audio {
namespace algo {

View File

@@ -24,7 +24,7 @@
*/
#include <audio/algo/chunkware/CompressorRms.h>
#include <audio/algo/chunkware/CompressorRms.hpp>
audio::algo::chunkware::CompressorRms::CompressorRms() :

View File

@@ -24,7 +24,7 @@
*/
#pragma once
#include <audio/algo/chunkware/Compressor.h>
#include <audio/algo/chunkware/Compressor.hpp>
namespace audio {
namespace algo {

View File

@@ -24,8 +24,8 @@
*/
#include <audio/algo/chunkware/debug.h>
#include <audio/algo/chunkware/EnvelopeDetector.h>
#include <audio/algo/chunkware/debug.hpp>
#include <audio/algo/chunkware/EnvelopeDetector.hpp>
audio::algo::chunkware::EnvelopeDetector::EnvelopeDetector(double _ms, double _sampleRate) {
AA_CHUNK_ASSERT(_sampleRate > 0.0, "input function error");

View File

@@ -24,7 +24,7 @@
*/
#pragma once
#include <etk/types.h>
#include <etk/types.hpp>
namespace audio {
namespace algo {

View File

@@ -24,7 +24,7 @@
*/
#pragma once
#include <etk/types.h>
#include <etk/types.hpp>
namespace audio {
namespace algo {

View File

@@ -24,8 +24,8 @@
*/
#include <audio/algo/chunkware/Gate.h>
#include <audio/algo/chunkware/debug.h>
#include <audio/algo/chunkware/Gate.hpp>
#include <audio/algo/chunkware/debug.hpp>
#include <cmath>
audio::algo::chunkware::Gate::Gate() :

View File

@@ -24,10 +24,10 @@
*/
#pragma once
#include <etk/types.h>
#include <audio/algo/chunkware/AttRelEnvelope.h>
#include <audio/algo/chunkware/Gain.h>
#include <audio/format.h>
#include <etk/types.hpp>
#include <audio/algo/chunkware/AttRelEnvelope.hpp>
#include <audio/algo/chunkware/Gain.hpp>
#include <audio/format.hpp>
namespace audio {
namespace algo {

View File

@@ -24,7 +24,7 @@
*/
#include <audio/algo/chunkware/GateRms.h>
#include <audio/algo/chunkware/GateRms.hpp>
audio::algo::chunkware::GateRms::GateRms() :
m_averager(5.0),

View File

@@ -24,7 +24,7 @@
*/
#pragma once
#include <audio/algo/chunkware/Gate.h>
#include <audio/algo/chunkware/Gate.hpp>
namespace audio {
namespace algo {

View File

@@ -24,8 +24,8 @@
*/
#include <audio/algo/chunkware/Limiter.h>
#include <audio/algo/chunkware/debug.h>
#include <audio/algo/chunkware/Limiter.hpp>
#include <audio/algo/chunkware/debug.hpp>
#include <cmath>
audio::algo::chunkware::Limiter::Limiter() :

View File

@@ -24,10 +24,10 @@
*/
#pragma once
#include <etk/types.h>
#include <audio/format.h>
#include <audio/algo/chunkware/AttRelEnvelope.h>
#include <audio/algo/chunkware/Gain.h>
#include <etk/types.hpp>
#include <audio/format.hpp>
#include <audio/algo/chunkware/AttRelEnvelope.hpp>
#include <audio/algo/chunkware/Gain.hpp>
#include <chrono>
#include <vector>

View File

@@ -23,7 +23,7 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "debug.h"
#include "debug.hpp"
int32_t audio::algo::chunkware::getLogId() {

View File

@@ -25,7 +25,7 @@
#pragma once
#include <elog/log.h>
#include <elog/log.hpp>
namespace audio {
namespace algo {

View File

@@ -1,7 +1,6 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import lutin.debug as debug
import lutin.tools as tools
def get_type():
@@ -25,13 +24,12 @@ def get_compagny_name():
def get_maintainer():
return "authors.txt"
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
def configure(target, my_module):
my_module.add_src_file([
'test/main.cpp'
])
my_module.add_depend(['audio-algo-chunkware', 'test-debug'])
return my_module
return True

View File

@@ -1,7 +1,6 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import lutin.debug as debug
import lutin.tools as tools
def get_type():
@@ -25,8 +24,7 @@ def get_maintainer():
def get_version():
return "version.txt"
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
def configure(target, my_module):
my_module.add_src_file([
'audio/algo/chunkware/debug.cpp',
'audio/algo/chunkware/Compressor.cpp',
@@ -38,18 +36,18 @@ def create(target, module_name):
'audio/algo/chunkware/Limiter.cpp'
])
my_module.add_header_file([
'audio/algo/chunkware/Compressor.h',
'audio/algo/chunkware/debug.h',
'audio/algo/chunkware/EnvelopeDetector.h',
'audio/algo/chunkware/AttRelEnvelope.h',
'audio/algo/chunkware/Gate.h',
'audio/algo/chunkware/GateRms.h',
'audio/algo/chunkware/Gain.h',
'audio/algo/chunkware/Limiter.h'
'audio/algo/chunkware/Compressor.hpp',
'audio/algo/chunkware/debug.hpp',
'audio/algo/chunkware/EnvelopeDetector.hpp',
'audio/algo/chunkware/AttRelEnvelope.hpp',
'audio/algo/chunkware/Gate.hpp',
'audio/algo/chunkware/GateRms.hpp',
'audio/algo/chunkware/Gain.hpp',
'audio/algo/chunkware/Limiter.hpp'
])
my_module.add_depend(['etk', 'audio'])
my_module.add_path(tools.get_current_path(__file__))
return my_module
my_module.add_path(".")
return True

View File

@@ -4,15 +4,16 @@
* @license APACHE v2.0 (see license file)
*/
#include <test-debug/debug.h>
#include <etk/etk.h>
#include <audio/algo/chunkware/Compressor.h>
#include <audio/algo/chunkware/Limiter.h>
#include <audio/algo/chunkware/Gate.h>
#include <etk/os/FSNode.h>
#include <test-debug/debug.hpp>
#include <etk/etk.hpp>
#include <audio/algo/chunkware/Compressor.hpp>
#include <audio/algo/chunkware/Limiter.hpp>
#include <audio/algo/chunkware/Gate.hpp>
#include <etk/os/FSNode.hpp>
#include <chrono>
#include <thread>
#include <unistd.h>
static std::vector<double> convert(const std::vector<int16_t>& _data) {
std::vector<double> out;
@@ -107,7 +108,7 @@ void performanceCompressor() {
perfo.tic();
algo.process(&output[0], &input[0], input.size(), 1, audio::format_double);
perfo.toc();
usleep(1000);
std::this_thread::sleep_for(std::chrono::milliseconds(1));
}
TEST_PRINT("Performance Compressor (double): ");
TEST_PRINT(" blockSize=" << input.size() << " sample");
@@ -148,7 +149,7 @@ void performanceLimiter() {
perfo.tic();
algo.process(&output[0], &input[0], input.size(), 1, audio::format_double);
perfo.toc();
usleep(1000);
std::this_thread::sleep_for(std::chrono::milliseconds(1));
}
TEST_PRINT("Performance Limiter (double): ");
TEST_PRINT(" blockSize=" << input.size() << " sample");
@@ -189,7 +190,7 @@ void performanceGate() {
perfo.tic();
algo.process(&output[0], &input[0], input.size(), 1, audio::format_double);
perfo.toc();
usleep(1000);
std::this_thread::sleep_for(std::chrono::milliseconds(1));
}
TEST_PRINT("Performance Gate (double): ");
TEST_PRINT(" blockSize=" << input.size() << " sample");
@@ -270,7 +271,7 @@ int main(int _argc, const char** _argv) {
algo.process(audio::format_double, &output[iii*blockSize], &inputData[iii*blockSize], blockSize, 1);
if (perf == true) {
perfo.toc();
usleep(1000);
std::this_thread::sleep_for(std::chrono::milliseconds(1));
}
}
*/
@@ -292,7 +293,7 @@ int main(int _argc, const char** _argv) {
algo.process(&output[iii*blockSize], &inputData[iii*blockSize], blockSize, 1, audio::format_double);
if (perf == true) {
perfo.toc();
usleep(1000);
std::this_thread::sleep_for(std::chrono::milliseconds(1));
}
}

View File

@@ -1 +1 @@
0.1.1
0.2.0