!7 static int bufferSize = 40960; static new Flag stopFlag; p { TargetDataLine line = javaSound_recordLine(javaSound_cdQuality°, bufferSize); byte[] buf = new byte[bufferSize]; line.start(); while (licensed() && !stopFlag.isUp()) { int n = line.read(buf, 0, bufferSize); print("Got " + n + " bytes"); if (n == 0) break; } }