goatchurchprime / two-voip-godot-4

MIT License
38 stars 8 forks source link

Disable built in proximity chat? #35

Closed shortcakecafe closed 1 day ago

shortcakecafe commented 1 day ago

Hi, this library has been super useful to me lately! I was wondering if there was a way to disable the built in proximity chat? Or at least I think there's built in proximity set up? I very much apologize if there isn't and it's some oversight in my own code.

shortcakecafe commented 1 day ago

Oops, completely my fault, I did not realize that a microphone on audiostreamplayer2d was also proximity based!

goatchurchprime commented 1 day ago

Wait, what? Does it make sense for a microphone to work on AudioStreamPlayer2D? I thought you could only get proximity features from the spatial relation between an AudioStreamPlayer2D and an AudioListener2D, and I can't see how to read the output from an AudioListener2D.

I'm trying to get all those networking gotchas, lessons and tricks into this project toy project, which has a voip component. https://github.com/goatchurchprime/godot_multiplayer_networking_workbench?tab=readme-ov-file#godot4-multiplayer-networking-workbench

shortcakecafe commented 14 hours ago

Essentially from what I gathered, if you put a microphone on an AudioStreamPlayer2D, then the further away you go, then the less it records your microphone, kinda like how it would work if you had audio coming out of it. If the AudioStreamPlayer is on your character, this isnt a problem since you're always close to it but mine was set on a stationary node for VOIP stuff.