[DEV] continue removing STL
This commit is contained in:
parent
005f102253
commit
58e843f8aa
@ -108,7 +108,7 @@ void audio::algo::chunkware::Compressor::processDouble(double* _out, const doubl
|
||||
double keyLink = 0;
|
||||
// get greater value;
|
||||
for (int8_t iii=0; iii<_nbChannel; ++iii) {
|
||||
double absValue = std::abs(_in[iii]);
|
||||
double absValue = etk::abs(_in[iii]);
|
||||
keyLink = etk::max(keyLink, absValue);
|
||||
}
|
||||
processDouble(_out, _in, _nbChannel, keyLink);
|
||||
|
@ -103,7 +103,7 @@ void audio::algo::chunkware::Gate::processDouble(double* _out, const double* _in
|
||||
double keyLink = 0;
|
||||
// get greater value;
|
||||
for (int8_t iii=0; iii<_nbChannel; ++iii) {
|
||||
double absValue = std::abs(_in[iii]);
|
||||
double absValue = etk::abs(_in[iii]);
|
||||
keyLink = etk::max(keyLink, absValue);
|
||||
}
|
||||
processDouble(_out, _in, _nbChannel, keyLink);
|
||||
|
@ -142,7 +142,7 @@ void audio::algo::chunkware::Limiter::processDouble(double* _out, const double*
|
||||
double keyLink = 0;
|
||||
// get greater value;
|
||||
for (int8_t iii=0; iii<_nbChannel; ++iii) {
|
||||
double absValue = std::abs(_in[iii]);
|
||||
double absValue = etk::abs(_in[iii]);
|
||||
keyLink = etk::max(keyLink, absValue);
|
||||
}
|
||||
// we always want to feed the sidechain AT LEATS the threshold value
|
||||
|
@ -108,7 +108,7 @@ void performanceCompressor() {
|
||||
perfo.tic();
|
||||
algo.process(&output[0], &input[0], input.size(), 1, audio::format_double);
|
||||
perfo.toc();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||
ethread::sleepMilliSeconds((1));
|
||||
}
|
||||
TEST_PRINT("Performance Compressor (double): ");
|
||||
TEST_PRINT(" blockSize=" << input.size() << " sample");
|
||||
@ -149,7 +149,7 @@ void performanceLimiter() {
|
||||
perfo.tic();
|
||||
algo.process(&output[0], &input[0], input.size(), 1, audio::format_double);
|
||||
perfo.toc();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||
ethread::sleepMilliSeconds((1));
|
||||
}
|
||||
TEST_PRINT("Performance Limiter (double): ");
|
||||
TEST_PRINT(" blockSize=" << input.size() << " sample");
|
||||
@ -190,7 +190,7 @@ void performanceGate() {
|
||||
perfo.tic();
|
||||
algo.process(&output[0], &input[0], input.size(), 1, audio::format_double);
|
||||
perfo.toc();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||
ethread::sleepMilliSeconds((1));
|
||||
}
|
||||
TEST_PRINT("Performance Gate (double): ");
|
||||
TEST_PRINT(" blockSize=" << input.size() << " sample");
|
||||
@ -271,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();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||
ethread::sleepMilliSeconds((1));
|
||||
}
|
||||
}
|
||||
*/
|
||||
@ -293,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();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||
ethread::sleepMilliSeconds((1));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user