I rewrote the application taking example from the forums on the udp protocol ...
I probably made some mistakes but honestly, I don't know where
If sendingAudio Then ' se sono in trasmissione
astream.Write(data)
Packet.Initialize(data, "192.168.0.255", 8000) ' assegno un ip broadcast alla macchina che trasmette sulla posta 8000
UDPSocket1.Send(Packet)
End If
First: is a correct IP (x.x.x.255 for bradcast) or I must assign a static IP (192.168.0.199 for example) ?
If sendingAudio = False Then ' se non è in trasmissione
audioStream.Write(Buffer)
End If
With these routines, theoretically, I do the half duplex but.....I still have a larsen effect, but above all, after a while, I hear the audio that I had sent several seconds before, as if the data buffer was sent and sent from one device to another
Could this problem be due to the fact that the UDP protocol sends the data to everyone and somehow the buffer is sent back reflexively? Anyone have any ideas, can you tell me where I'm wrong?
Ps..
I don't know about AUDIO libraries ... I tried to interpret the guides
Thank's to all in advance
Mario