mumble-voip / mumble

Mumble is an open-source, low-latency, high quality voice chat software.
https://www.mumble.info
Other
6.26k stars 1.11k forks source link

Callbacks #6541

Closed Neloy262 closed 2 weeks ago

Neloy262 commented 3 weeks ago

The issue

I need to change the data that is sent by the server when a callback is triggered. How might I do this?

Mumble version

1.5.0

Mumble component

Server

OS

Linux

Additional information

No response

davidebeatrici commented 3 weeks ago

What do you mean with "callback"?

Krzmbrzl commented 3 weeks ago

Generally speaking this kind of thing is likely only possible by modifying the source code itself.

Neloy262 commented 2 weeks ago

@Krzmbrzl what files or folders should I look into?

Krzmbrzl commented 2 weeks ago

Given that I have no idea what you are actually trying to do, all I can say is that the server files live in src/murmur. If you tell me more about what exactly you want, I can be more specific.

Neloy262 commented 2 weeks ago

I am using a client pymumble. There we can register callback functions when certain events occur(user state updated,channel created etc.). The server sends data back through these callbacks. I want to modify the data sent by the server.

Krzmbrzl commented 2 weeks ago

Depending on the message, the corresponding code lives somewhere else. But all end up going through Server::sendMessage eventually. You can go through the code backwards.