How does Mumble overlay communicate with Mumble client?

Ice/DBus, Web-Interfaces, Management tools

How does Mumble overlay communicate with Mumble client?

Postby bbosen » Sat Jan 07, 2017 9:47 pm

I am writing a high-performance flight simulator for Linux. It's working well now (in beta test). It's written entirely in "C" and "C++" and the code is highly tuned for speed. It plays well with Mumble and I've already included a very primitive, native mumble interface without changing any mumble code or running any external scripts. I'd like to do more integration. Although the existing mumble overlay works well in this environment and meets my user interface needs completely, it steals some CPU cycles and costs me some precious frame rate. I'd like to code an extremely lightweight interface (compiled in "C" or "C++ within my flight sim) just to display the name of any mumble user that is currently speaking on the active mumble channel. Obviously the existing Mumble Overlay does this somehow. I dug into all of the posts here but I couldn't get to bedrock on this subject. So here is my basic question:

How does the existing Mumble overlay learn the Mumble username of Mumble users speaking on the current Mumble channel?

For right now I am not looking for code samples. I just want to understand the mechanism. Is the Mumble overlay querying the mumble server for this information? Or does the existing Mumble client signal the overlay somehow?

Thanks!
;)
bbosen
 
Posts: 4
Joined: Sat Jan 07, 2017 9:34 pm

Re: How does Mumble overlay communicate with Mumble client?

Postby kissaki » Sat Jan 21, 2017 10:44 am

The communication happens via a system local pipe, creation see https://github.com/mumble-voip/mumble/b ... b.cpp#L124

Mumble sends messages through the pipe, and the Overlay part that is injected into the game process handles those.
MumPI: Your Mumble Web Interface in PHP
User avatar
kissaki
Team member
Team member
 
Posts: 1234
Joined: Sat Jan 09, 2010 12:15 pm

Re: How does Mumble overlay communicate with Mumble client?

Postby bbosen » Sun Jan 22, 2017 2:08 am

Thanks. That's very helpful. I really appreciate you going to the extra length of vectoring me at the right source code.
:)
bbosen
 
Posts: 4
Joined: Sat Jan 07, 2017 9:34 pm


Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests

cron