
13 Nov
2012
13 Nov
'12
12:04 a.m.
Fabio Estevam wrote:
When aplay/arecord are called without any argument the application hangs forever.
Instead of hanging, print the usage and exit.
- if (argc == 1) {
usage(command);
return 0;
- }
It's possible to call it with "aplay < somefile". Better add a check like isatty(fileno(stdin)).
Regards, Clemens