return;
}
+static void print_usage()
+{
+ printf("audio_io_process_test -r [samplerate] -c [channels] -d [reference_device_id] -a [AEC type] -n [NS type] -o [output filename]\n");
+ printf("e.g) audio_io_process_test -r 16000 -d 1 -a 0 -n 0 -o filename\n");
+}
+
int main(int argc, char **argv)
{
setbuf(stdout, NULL);
arg_channels = AUDIO_CHANNEL_MONO;
arg_format = AUDIO_SAMPLE_TYPE_S16_LE;
+ if (argc == 1) {
+ print_usage();
+ return 0;
+ }
+
printf("===== Arguments information =====\n");
while (-1 != (option = getopt(argc, argv, optstring))) {
switch (option) {
break;
case 'h':
default:
- printf("audio_io_process_test -r [sample] [-d:reference_device_id] [-a:AEC type] [-n:NS type] -o [output filename]\n");
- printf("audio_io_process_test -r 16000 -d 1 -a 0 -n 0 -o filename\n");
+ print_usage();
return 0;
}
}