-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feature Request: Enhance --version Switch in mpg123/mpg321 for Version Checking #45
Comments
Hey @stefets ! Thanks for your contribution (again!)
Thank you :-) |
Hello!
I know for mpg123 and the stdout is
Yes!
Keep in mind that mpg123 evolve and mpg321 is dead since almost 15 years. Thanks! |
Another refactor possible with this feature would be to move the def volume to the BasePlayer class. Anyway, we support two different players, I think it make sense having a condition in the BasePlayer class that will send "GAIN" or "VOLUME" depending the player type. With this move, the mpyg321 child class will have no specifics behaviour and will be 100% managed by the base class. |
I also suggest a PlayerVersion class that will be created by each child class
As an usage example:
Or
|
About the versions, I understand. I think that we can start to add parsing for the version. Can you give me a list of the different versions you want to handle and I will implement it the way I see it (for example, I think the versions should be handled in
I believe that the base class should not have any handling of the versions. That's the whole idea behind it. |
Yes I agree!
Yes, I totally agree! my idea behind was to use constants for the sendline calls.
Yes, the @ P 3 for the end of song asked by us in the 1.30.0 version, this is my code to handle it, but added to the mpg_outs list. https://www.mpg123.de/cgi-bin/news.cgi#2022-06-26
Also @ PROGRESS that is the opposite of @ SILENCE; I think that we can improve this part, if we are not @ SILENCE, frames are stdout @ F 139 9823 3.63 256.60 so we can track the frame number in real time. I have not need for this but it is possible. After, In version 1.31.0 https://www.mpg123.de/cgi-bin/news.cgi#2022-10-28 Change error message from 'unknown command' to 'unknown command with arguments' to avoid confusion why 'help foo' is unknown, as opposed to 'help'. This impact the mpg_errors list. Thanks! |
Alright I will do that on my free time, thank you! |
I would like to submit a feature request related to the version-checking functionality of mpg123 and mpg321. Currently, both utilities support the --version switch to display version information. However, I propose an enhancement to this feature to facilitate conditional checks based on the version number.
The requested enhancement is as follows:
The actual output for mpg123 is :
Where 1.32.6 represents the version number. This format would allow the wrapper to reliably extract and compare version numbers.
I appreciate your consideration of this feature request. If you have any questions or require further clarification, please feel free to reach out!
Best regards,
The text was updated successfully, but these errors were encountered: