Java newbie here with a worker
thread problem.
I'm trying to receive streaming audio via UPD and when the program enters the for loop in the worker thread, it hangs and the event thread becomes unresponsive.
If I comment out the for loop, all is ok. Commenting out the audioPlayer line with the for loop uncommented makes no difference as long as the for loop is there. It seems like something with the loop itself.
Shouldn't I be able to run a long loop in the worker thread without disrupting the event thread?
Any advice appreciated and thanks!