Hi,
I have problems with audio latency on TargetDataLine. I am using
java 1.6 on Windows XP. It seems that java reads audio from system in 200ms chunks.
This is my audio capture code:
As you can see above, I am trying to use 160 bytes buffer. But when I check the data available in targetDataLine`s internal buffer I saw that the length of incoming data is 1600b.
Is there any way to force java to read audio data from system in smaller chunks (perhaps 160b)?
Thanks for any advice.
Milan