The usage info documents both short and long form arguments for these:
"-B,--buffer buffer size in frames\n"
"-E,--period period size in frames\n"
But the short form was missing from the optstring so it wasn't accepted:
alsaloop -B 123 -E 42
alsaloop: invalid option -- 'B'
alsaloop: invalid option -- 'E'
Fix that.
Closes: https://github.com/alsa-project/alsa-utils/pull/317
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
while (1) {
int c;
if ((c = getopt_long(argc, argv,
- "hdg:P:C:X:Y:x:l:t:F:f:c:r:s:benvA:S:a:m:T:O:w:UW:z",
+ "hdg:P:C:X:Y:x:l:t:F:f:c:r:B:E:s:benvA:S:a:m:T:O:w:UW:z",
long_option, NULL)) < 0)
break;
switch (c) {