I have looked at it but could not figure out to send the audio in a byte array.
I use AudioRecord and send the AR buffer over UDP to a server.
But there is a rattling noise on the receiving end.
When i send the same from an Android device the audio is clear.
I works on the Android side.
On the B4J side i use the example from you with threading.
With one exception that i use a OPUS library to convert the PCM to OPUS.