Sending Sounds over the network
Posted: Wed Dec 19, 2018 11:56 am
Hello,
I am interested in having players be able to talk to each other online with their microphones. I would need to be able to get the microphone input into a string, push the string over the network, then have the guy at the other turn the string into SoundData/Source then play it on his end.
However, I can't seem to figure out how to do it. Could anyone give me some sample code? I have tried love.data.encode, and love.data.decode and all that, but it never seems to work getting *back* to sounds that I can play. I have no intention of saving any of this into a file, since it will all be over network and maintained on the RAM.
I am interested in having players be able to talk to each other online with their microphones. I would need to be able to get the microphone input into a string, push the string over the network, then have the guy at the other turn the string into SoundData/Source then play it on his end.
However, I can't seem to figure out how to do it. Could anyone give me some sample code? I have tried love.data.encode, and love.data.decode and all that, but it never seems to work getting *back* to sounds that I can play. I have no intention of saving any of this into a file, since it will all be over network and maintained on the RAM.