I am developing a VOIP application that uses Java's built in TargetDataLine.read()
method to store microphone input in a byte array buffer. However, this function seems to run for around 500ms longer than it should. Why is there this extra latency and are there any other methods that I can use to reduce the latency? I am using 16bit 40000Hz PCM signed.
All responses will be very much appreciated