[DEV] remove dependency of unistd.h
This commit is contained in:
parent
ce5910b8df
commit
9ce8a22a29
@ -11,8 +11,9 @@
|
|||||||
#include <audio/algo/chunkware/Gate.hpp>
|
#include <audio/algo/chunkware/Gate.hpp>
|
||||||
#include <etk/os/FSNode.hpp>
|
#include <etk/os/FSNode.hpp>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
#include <thread>
|
||||||
|
|
||||||
|
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
static std::vector<double> convert(const std::vector<int16_t>& _data) {
|
static std::vector<double> convert(const std::vector<int16_t>& _data) {
|
||||||
std::vector<double> out;
|
std::vector<double> out;
|
||||||
@ -107,7 +108,7 @@ void performanceCompressor() {
|
|||||||
perfo.tic();
|
perfo.tic();
|
||||||
algo.process(&output[0], &input[0], input.size(), 1, audio::format_double);
|
algo.process(&output[0], &input[0], input.size(), 1, audio::format_double);
|
||||||
perfo.toc();
|
perfo.toc();
|
||||||
usleep(1000);
|
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||||
}
|
}
|
||||||
TEST_PRINT("Performance Compressor (double): ");
|
TEST_PRINT("Performance Compressor (double): ");
|
||||||
TEST_PRINT(" blockSize=" << input.size() << " sample");
|
TEST_PRINT(" blockSize=" << input.size() << " sample");
|
||||||
@ -148,7 +149,7 @@ void performanceLimiter() {
|
|||||||
perfo.tic();
|
perfo.tic();
|
||||||
algo.process(&output[0], &input[0], input.size(), 1, audio::format_double);
|
algo.process(&output[0], &input[0], input.size(), 1, audio::format_double);
|
||||||
perfo.toc();
|
perfo.toc();
|
||||||
usleep(1000);
|
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||||
}
|
}
|
||||||
TEST_PRINT("Performance Limiter (double): ");
|
TEST_PRINT("Performance Limiter (double): ");
|
||||||
TEST_PRINT(" blockSize=" << input.size() << " sample");
|
TEST_PRINT(" blockSize=" << input.size() << " sample");
|
||||||
@ -189,7 +190,7 @@ void performanceGate() {
|
|||||||
perfo.tic();
|
perfo.tic();
|
||||||
algo.process(&output[0], &input[0], input.size(), 1, audio::format_double);
|
algo.process(&output[0], &input[0], input.size(), 1, audio::format_double);
|
||||||
perfo.toc();
|
perfo.toc();
|
||||||
usleep(1000);
|
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||||
}
|
}
|
||||||
TEST_PRINT("Performance Gate (double): ");
|
TEST_PRINT("Performance Gate (double): ");
|
||||||
TEST_PRINT(" blockSize=" << input.size() << " sample");
|
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);
|
algo.process(audio::format_double, &output[iii*blockSize], &inputData[iii*blockSize], blockSize, 1);
|
||||||
if (perf == true) {
|
if (perf == true) {
|
||||||
perfo.toc();
|
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);
|
algo.process(&output[iii*blockSize], &inputData[iii*blockSize], blockSize, 1, audio::format_double);
|
||||||
if (perf == true) {
|
if (perf == true) {
|
||||||
perfo.toc();
|
perfo.toc();
|
||||||
usleep(1000);
|
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user