-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
amixer command output parser #591
Comments
Thank you for the parser suggestion! Looks like this could be a good parser for |
@kellyjonbrazil Hey Kelly! |
Absolutely! I welcome a PR. Please take a look at https://github.com/kellyjonbrazil/jc/blob/master/CONTRIBUTING.md |
* created the amixer first skeleton * push testing and integrate this commit and branch with issue: #591 * #591 checks the input data with jc utils * created the data parser of the sget control of the amixer sget <controller> command. * test commit - just for tests * another test commit * another test commit * created a dedicated pseudo algorithm for the amixer sget and tried various of strings. * orginized the docstring with general explanation about the tool and the amixer tool output and algorithm of the input parsing and input examples. * created raw implementation, but it's raw either or either. * orginized the content inside the amixer parser * removed endpoint name * added amixer to the jc parser in lib * more explanations * added tests for the amixer sget * added tests for the amixer sget * fine versioning fix * created docstring+another explanations seperated. * created the amixer parser docu * added the amixer in alphabet order to the json convert lib * Fix PEP 8: E302 violation as part of boy scout principle * deleted not necessary file * fixed the spaces between sections in the amixer description * resolved commits such as amixer module docstring and preperations for parser for raw=False. * Revert "Fix PEP 8: E302 violation as part of boy scout principle" This reverts commit 241d1a1. * created the dedicated _process for raw=False * created the dedicated _process for raw=False * added tests for the _process raw=False. * changed keys to be lowercase snake-case - Change 'dB' to 'db' * added more dB -> db changes and used int convertor of the jc utils --------- Co-authored-by: EdenRafael <[email protected]> Co-authored-by: Eden Refael <[email protected]> Co-authored-by: Kelly Brazil <[email protected]>
This will be released in v1.25.5 |
What
As part of utilizing the Advanced Linux Sound Architecture (ALSA), there is a need to develop a parser for the
amixer
tool. This parser will process and interpret the output of theamixer
command to analyze audio settings and states.Why
The
amixer
command provides detailed information about sound settings and controls on a Linux system. By creating an output parser, you can automate the analysis and handling of this data, enabling you to:For Which Commands output we'll create the parser
We'll run the
amixer
Command.sget
:amixer list-sources
andamixer scontent
andamixer scontrols
...The text was updated successfully, but these errors were encountered: