Page 1 of 1
Mumble 3D positional audio

Posted:
Thu Jul 25, 2013 15:41
by Elinvention
What about adding Mumble's 3d positional audio support to Minetest? I think that would be a great feature! It shouldn't be hard to code from what I see from this page
http://mumble.sourceforge.net/Link. I would like to help the development but I don't know where to start from.
Thank you for your attention.

Posted:
Thu Jul 25, 2013 18:21
by Calinou
I agree on this, but it's probably not that easy.

Posted:
Thu Jul 25, 2013 18:27
by jojoa1997
What does this mumble audio do?

Posted:
Thu Jul 25, 2013 22:06
by Elinvention
As described
http://mumble.sourceforge.net/ "Mumble is an open source, low-latency, high quality voice chat software primarily intended for use while gaming.". It is a free replacement of Teamspeak or Ventrilo.
I don't know how Minetest is coded, but it seems that you have to attach to Mumble's shared memory area and then write on it to update the player's position converted in "meters".
I can code in C and Java and a very little in C++. If I can help, tell me.

Posted:
Fri Jul 26, 2013 08:29
by incentive
Elinvention , nobody on minetest uses mumble. Do you wanna use it? I can try it out with you if you want.
The problem is just that. Nobody here uses mumble so nobody's interested to implement it. The greatest possibility of implementation is if you and I are interested to devote our time to this.
Wazuclan use Teamspeak3. Not mumble.

Posted:
Fri Jul 26, 2013 08:54
by Calinou
jojoa1997 wrote:What does this mumble audio do?
Positional audio makes it sound like the players in the world are actually talking. If a player is to your right, and that player speaks through Mumble, you'll hear them through the right speakers/headphones.

Posted:
Fri Jul 26, 2013 14:22
by jojoa1997
Calinou wrote:jojoa1997 wrote:What does this mumble audio do?
Positional audio makes it sound like the players in the world are actually talking. If a player is to your right, and that player speaks through Mumble, you'll hear them through the right speakers/headphones.
Cool. Too bad my headphones only have one speaker.

Posted:
Fri Jul 26, 2013 14:46
by webdesigner97
Would be interesting but only if people are really interested in mumble/voice chat. The main problem is that most servers here have people from all around the world. Most of the players are good in written english but I think most of them don't dare speaking english. If we had a bigger community with servers where only their mother tongue is spoken, then it would definitly make sense!

Posted:
Fri Jul 26, 2013 21:29
by Elinvention
Wazuclan use Teamspeak3. Not mumble.
Too bad!!! You are using proprietary software! Blame yourself!!!
However I really would like to implement this. I'm studying Minetest's source code... I just have to find where I could initialize the "link" with Mumble and where the coordinates of the player are...
incentive thank you for your proposal, but I already have my laboratory rat to test mumble with. I'd rather prefer someone that knows the source code, so that he could help me.
Sorry for my English!

Posted:
Sat Jul 27, 2013 06:37
by sfan5
Elinvention wrote: I just have to find where I could initialize the "link" with Mumble and where the coordinates of the player are...
Take a look at game.cpp

Posted:
Wed Aug 07, 2013 17:16
by sdzen
incentive wrote:Elinvention , nobody on minetest uses mumble. Do you wanna use it? I can try it out with you if you want.
I actually did connect to a minetest server that had its own mumble server way back when, I was very impressed back then even without positional sound :)
Re: Mumble 3D positional audio

Posted:
Sun Jan 17, 2016 17:31
by SaKeL
Is there any update on this? I would really like to use it on my mumble/minetest server. (minetest 4.13)
Re: Mumble 3D positional audio

Posted:
Mon Jan 18, 2016 04:37
by BrandonReese
I started to work on this probably about a year ago and never finished or tested it. I went ahead and "finished" it tonight and pushed to my repository. It's based off an older version of minetest so it would need to be rebased. In it's current state it compiles and doesn't immediately segfault when you start the game but I don't know if it actually works. If someone wants to use this as a starting point or as a lesson in what not to do here it is.
https://github.com/Bremaweb/minetest/tr ... -pos-audio
Re: Mumble 3D positional audio

Posted:
Mon Jan 18, 2016 04:51
by BrandonReese
In a quick test in just running this branch of minetest and mumble it looks like it's working. It Settings -> Plugins you have to check mark "Link to Game and Transmit Position" and in message bar on the left I received the notification "Minetest Mumble Linked" now that I have reinvested myself in this I can update it to the latest dev version but I doubt my pull request would be accepted because of code style or doing something incorrectly because I only pretend to be able to code in C++. So if somebody who actually knows what they are doing wants to go it go ahead.
Re: Mumble 3D positional audio

Posted:
Mon Jan 18, 2016 05:28
by BrandonReese
Updated my mumble-positional-audio branch to the latest dev version of minetest.
https://github.com/Bremaweb/minetest/tr ... onal-audio
Re: Mumble 3D positional audio

Posted:
Mon Jan 18, 2016 06:47
by SaKeL
Good work and thanks for the update. I will have a look at it. Even though it doesn't sound yet as "ready for production", it's great to see that someone has actually picked this up. Thanks ;)
Re: Mumble 3D positional audio

Posted:
Mon Jan 18, 2016 18:07
by AnxiousInfusion
From the perspective of running a server, I think most people would opt to just run a dedicated Mumble instance along side Minetest. The only thing you'd really miss is the 3D positional audio.
Re: Mumble 3D positional audio

Posted:
Mon Jan 18, 2016 18:34
by BrandonReese
This doesn't integrate mumble into minetest. You would still have to run your own mumble server. Mumble positional audio is all handled on the mumble client. This minetest patch lets your mumble client know your minetest position so the position can be sent with your voice packets and it can do the positional audio calculations when you receive voice packets from other players that contain a location.
Re: Mumble 3D positional audio

Posted:
Tue Jan 19, 2016 06:45
by SaKeL
Yes i am aware of that and i have dedicated Mumur on the server already. Thanks though.
Re: Mumble 3D positional audio

Posted:
Wed Jan 20, 2016 05:18
by sofar
We should work on making the minetest server advertise in-game that there is a mumble server available, so the client can automatically connect using the in-game player name and to the right server.
Re: Mumble 3D positional audio

Posted:
Wed Jan 20, 2016 05:42
by sofar
Seems that there is a socket interface where you can write some XML formatted commands to tell mumble to connect to a server, join a channel, etc..
https://github.com/mumble-voip/mumble/blob/master/src/mumble/SocketRPC.cppNow we just need a way to have the server deliver a URL to a mumble server, so that the client receives that URL and pass it to mumble.
Re: Mumble 3D positional audio

Posted:
Wed Jan 20, 2016 10:34
by twoelk
playing with others using TeamSpeak is great. Make using Mumble an even greater experience !
Maybe a hint within the nametag wether a player is connected to a mumbleserver might be usefull.