-
Notifications
You must be signed in to change notification settings - Fork 187
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
bluealsa-client: a new utiility for invoking D-Bus API messages from the command line. #413
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice addition to the project, I like that! :)
PS.
Sorry for not making any progres in other PRs, but currently I'm stuck in the middle of turning internals upside down (a little bit, though). I hope I will finish my work in this month, so it will be possible to merge SCO state model. Then, I will start looking at the BIG PR with multi client support :)
There was an email beep when I was writing a comment regarding "cmd" name :) You was faster than me. Please, keep it "client" for now, but I've just checked on my PC how many binaries end with "*client" and there are few, e.g. "mosh-client", "rpcclient", "smbclient", which are indeed client apps. BUT there are also apps like "keepassxc-cli" or "wpa_cli" which are command line interfaces for related services (maybe bluealsa- is also more a command line interface than client). And there are also "bluetoothctl", "syslog-ng-ctl", "cec-ctl". And to be fair there is one "bccmd". So, maybe the name should be "ctl" or "cli", but I don't know which would fit better :D |
OK - its easy to change - have a think and I'll go with whatever you decide. Maybe there are others reading this who may have suggestions? I originally had |
Ooo I see, I don't have PA on my box installed so I did not find Like @borine has said, any suggestions are welcomed :) |
A tool to simplify access to the bluealsa D-Bus API from the commandline.
A list of potential names for this utility:
|
i propose to squash the commits in this PR once a name for the utility has been chosen - I think that should make a final review easier against a single commit. I've used size_t instead of ssize_t for returns of read() and write(), so that needs fixing, but other than that I hope we are gettiing close to a final review now. Unless you have any new comments, we just need to choose the name. I'll continue to try to think up more candidates, but am not having any inspired ideas at present. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i propose to squash the commits in this PR once a name for the utility has been chosen
Yes, there is no need to squash it now, adding new commits it OK. I will squash it anyway when committing to master.
Unless you have any new comments, we just need to choose the name.
That's the toughest task :D From all of the names you've mentioned I'd go for bluealsa-cli
anyway. Here is the reasoning: For now this tool could be named as bluealsa-pcm
or even bluealsa-pcm-ctl
or bluealsa-pcm-cli
or something similar, because it uses PCM interface of BlueALSA service (and Manager but only for listening for PCM-related signals). However, I've got some other methods in the Manager interface which could be used by this tool - interface for internal configurations like forcing mono channel, changing settings for encoders, etc. It is not released in the master, but maybe someday I will polish it enough to be public-ready. So in such a way this tool could be a PCM client and controller, so the name "command line interface" fits best in my opinion.
I'll make all the changes you request as soon as I can - have real-life priority right now. I'll also change the name to |
No problem. I also have a lot of family-related real-life urgent tasks recently - that's why I had to slow down development of my open-source projects :)
I haven't thought about that yet. But since the review of the implementation part is more or less done (from my point of view) it might be a good idea to look at this. And right of the bat I've got some ideas/thoughts (not change requests :D). How about something like this:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I think that's it. I think that the user experience right now is OK. Help messages looks nice. After these final few changes, it will be ready to go :)
OK, I will squash these commits and make final minor style changes (mixed tab-spaces indentations, double new lines, etc.) and merge it :) |
This tool simplifies access to the BlueALSA service D-Bus API from the command line. Closes #413
This tool simplifies access to the BlueALSA service D-Bus API from the command line. Closes #413
This is a simple tool wrapping the org.bluealsa
Manager1
andPCM1
D-Bus interfaces. It may be useful for selecting the A2DP codec, viewing properties, or enabling/disabling SoftVolume. The other methods and signal monitoring are also implemented, although possibly less useful in practice.