[DEV] clean

This commit is contained in:
Edouard DUPIN 2015-04-17 23:49:11 +02:00
parent 1d1b5e9393
commit e83c228ca1
4 changed files with 16 additions and 12 deletions

View File

@ -101,13 +101,15 @@ namespace audio {
virtual void initRuntime();
void process(audio::format _format, void* _output, const void* _input, size_t _nbChunk, int8_t _nbChannel);
protected:
process(double* _out, const double* _in, int8_t _nbChannel);
process(float* _out, const float* _in, int8_t _nbChannel);
process(int16_16_t* _out, const int16_16_t* _in, int8_t _nbChannel);
process(int16_32_t* _out, const int16_32_t* _in, int8_t _nbChannel);
process(int24_32_t* _out, const int24_32_t* _in, int8_t _nbChannel);
process(int32_32_t* _out, const int32_32_t* _in, int8_t _nbChannel);
process(int32_64_t* _out, const int32_64_t* _in, int8_t _nbChannel);
/*
void process(double* _out, const double* _in, int8_t _nbChannel);
void process(float* _out, const float* _in, int8_t _nbChannel);
void process(int16_16_t* _out, const int16_16_t* _in, int8_t _nbChannel);
void process(int16_32_t* _out, const int16_32_t* _in, int8_t _nbChannel);
void process(int24_32_t* _out, const int24_32_t* _in, int8_t _nbChannel);
void process(int32_32_t* _out, const int32_32_t* _in, int8_t _nbChannel);
void process(int32_64_t* _out, const int32_64_t* _in, int8_t _nbChannel);
*/
// limiter runtime process
void process(double& _in1, double& _in2);
void processMono(double& _in);

View File

@ -38,6 +38,7 @@ namespace audio {
#define AA_CHUNK_BASE(info,data) TK_LOG_BASE(audio::algo::chunkware::getLogId(),info,data)
#define AA_CHUNK_PRINT(data) AA_CHUNK_BASE(-1, data)
#define AA_CHUNK_CRITICAL(data) AA_CHUNK_BASE(1, data)
#define AA_CHUNK_ERROR(data) AA_CHUNK_BASE(2, data)
#define AA_CHUNK_WARNING(data) AA_CHUNK_BASE(3, data)

View File

@ -15,6 +15,7 @@ namespace appl {
#define APPL_BASE(info,data) TK_LOG_BASE(appl::getLogId(),info,data)
#define APPL_PRINT(data) APPL_BASE(-1, data)
#define APPL_CRITICAL(data) APPL_BASE(1, data)
#define APPL_ERROR(data) APPL_BASE(2, data)
#define APPL_WARNING(data) APPL_BASE(3, data)

View File

@ -54,11 +54,11 @@ int main(int _argc, const char** _argv) {
sampleRate = etk::string_to_int32_t(data);
} else if ( data == "-h"
|| data == "--help") {
APPL_INFO("Help : ");
APPL_INFO(" ./xxx --fb=file.raw --mic=file.raw");
APPL_INFO(" --in=YYY.raw inout file");
APPL_INFO(" --perf Enable performence test (little slower but real performence test)");
APPL_INFO(" --sample-rate=XXXX Signal sample rate (default 48000)");
APPL_PRINT("Help : ");
APPL_PRINT(" ./xxx --fb=file.raw --mic=file.raw");
APPL_PRINT(" --in=YYY.raw inout file");
APPL_PRINT(" --perf Enable performence test (little slower but real performence test)");
APPL_PRINT(" --sample-rate=XXXX Signal sample rate (default 48000)");
exit(0);
}
}