#include "utils_tests.h"
int main (int argc, char **argv)
{
if (argc < 2) {
err = 2;
PRINT_ERR("not enough arguments\n");
PRINT_MSG("usage: %s <output_path> [freq] [samplerate]\n", argv[0]);
return err;
}
if ( argc == 4 ) samplerate = atoi(argv[3]);
if ( argc == 3 ) freq = atof(argv[2]);
uint_t duration = 2 * samplerate;
do {
if ( n_frames > duration / 3 && region < 1) {
region++;
}
if ( n_frames > 2 * duration / 3 && region < 2) {
region++;
}
if (duration - n_frames < hop_size * 2 ) {
}
if (duration - n_frames < hop_size ) {
write = duration - n_frames;
} else {
write = hop_size;
}
n_frames += hop_size;
} while ( n_frames <= duration );
return 0;
}