12 Nov
2012
12 Nov
'12
11:04 p.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