#include "utils_tests.h"
int test_wrong_params(void);
int main (int argc, char** argv)
{
if (argc < 2) {
err = 2;
PRINT_WRN("no arguments, running tests\n");
err = test_wrong_params();
PRINT_MSG("usage: %s <input_path> [samplerate] [hop_size]\n", argv[0]);
return err;
}
char_t *source_path = argv[1];
if ( argc >= 3 ) samplerate = atoi(argv[2]);
if ( argc >= 4 ) hop_s = atoi(argv[3]);
win_s = 2 * hop_s;
if (!in || !fftgrain || !out) { err = 1; goto failure; }
if (!source) { err = 1; goto failure; }
if (!pv) { err = 1; goto failure; }
if (!mfcc) { err = 1; goto failure; }
do {
} while (read == hop_s);
failure:
if (mfcc)
if (pv)
if (source)
if (in)
if (fftgrain)
if (out)
return err;
}
int test_wrong_params()
{
return run_on_default_source(main);
}