Skip to content

Conversation

@jacmet
Copy link
Contributor

@jacmet jacmet commented Jan 7, 2026

Various minor fixes to the alsaloop command line parsing

jacmet added 4 commits January 7, 2026 11:54
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.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
It is not documented in the usage info, no corresponding long option and is
not handled in the parsing, so drop it from the optstring.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
The usage info documents a long form --wake option:

"-W,--wake      process wake timeout in ms\n"

But it wasn't handled:

alsaloop --wake 42
alsaloop: unrecognized option '--wake'

Fix that.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
The 'd' and 'm' options were not in the same order as the long options.  Fix
that.

No functional change, but makes it easier to ensure they are kept in sync.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant