-
-
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
Issue 82 oo rwrite #84
base: master
Are you sure you want to change the base?
Conversation
-Builds against mumble-plugin-cpp -Implements basic server and channel callbacks -Currently does nothing other than log messages
This is still very much WIP and proof of concept.
Cool, thanks! And don’t feel obligated to complete this. |
I added some references to the documentation and a basic todo list with tickable items to the inital comment above. This way, we can easily track the progress on a higher level. Btw. I have actually spend some toughts onto the structure for internal and remote state. Another point i have seen: You already provide some methods for generating a UDP string for some values (like location). Btw. as we go along: so you have experience with coding unit tests? This would be a great addition too, and i think with the OO approach this would be more easy to code up (new: #85). |
Ok thanks. I do like the idea of adding a class for storing and managing fgcom_identity objects. Any idea of a name for the class? I'm not sure what you mean by:
I'm not familiar with Java, the reason fgcom_identity::getUdpMsg() returns std::vector is that's what the m_api.sendData takes as an argument, so there is no need to convert from string to std::vector every time you send a message via sendData(). That said, I might be completely misunderstanding what you meant. A class to parse udp data would allow us to remove even more code from the main class. And it could be used in both onReceiveData() and fgcom_spawnUDPServer(). I have no expirence with coding unit tests, however this project is for learning experience so we might need to check into that. As far as the completetion of this branch: I'll continue to work on it when I have time, but since I generally have less time for programming during spring and summer, don't expect it to be done very fast :D |
Anything with "state" in it, maybe
I think i need to read up the API then :)
Currently tinkering with that and i think it's somewhat easy. I aleady added a branch for that.
No rush! We have no pressure here, as the current codebase is working already. |
c4de535
to
fe74a79
Compare
@hbeni I haven't really been working on this much recently. It's spring/summer and I'm very much an outdoor person. I've been watching most of the commits and issues and it appears that very few are bug fixes to the actual code anymore, which suggests that the codebase itself is fairly stable anymore. I'm willing to keep working on it if you think it's worth it. It just won't be very fast :) If you want to delete these branches and put a won't fix on the linked issues, feel free to do that as well. |
Hi there, it all depends if you want to continue to pursue it. I think beeing fully OO would benefit in the long term; however it’s already alot(!) of work to even get close to what is here already - all with the constant danger of introducing new bugs along the way. Maybe a compromise is to merge the other branch into this here and just keep this one. Deleting the work already done is neither necessary nor fun |
Initial fgcom_stateManger implemetation.
Well I learn quite a bit about threading and udp so I think it was certainly worth it on my part. However as you say, the amount of work that still needs done is considerable since so far all the work has been getting audio both ways. I'm fine with leaving this here, in case me, you, or somebody else needs somthing to work on later, This should be a great base or at least an example for using the OO plugin framework. I do have more commits with improvements on this such as supporting multiple local clients, however I still haven't got audio working reliably both ways with the current plugin for some unknown reason, which is why I still haven't pushed. I'll hold on the them and maybe find time to fix that. |
This branch is for the development of an object oriented fgcom-mumble plugin using https://github.com/mumble-voip/mumble-plugin-cpp. Still very much work in progress. The aim is to create a drop-in replacement for the existing plugin.
What currently works:
What needs to be done:
ToDo list:
References: