} else {
System.out.println("Usage:   java AudioToBuffer hostname:port");
return;</BUG>
}
<BUG>a2b.listDevices();
System.out.println("Trying to open default AUDIO IN device...\n");
if (!a2b.start()) return;
System.out.println("Now streaming audio. Press q and <enter> to quit.\n");
while (true) {
a2b.tick();</BUG>
try {

} else {
try {
Thread.sleep((long)(blockSize*1000.0/fSample));
} catch (InterruptedException e){
System.out.println(e);
}
}
t        = System.currentTimeMillis() - t0; // current time since start
if (t >= printTime) {
System.out.print(nBlk + " " + nSample + " 0 " + (t/1000) + " (blk,samp,event,sec)\r");
printTime = t + 5000; // 5s between prints
}
try {
