new Thread(()->{
while (!majorStreamActive.get()){
if(stopFlag)break;
try {
long s = System.currentTimeMillis();
log.info("=========audio=======");
log.info("=========audio ok=======");
long e = System.currentTimeMillis();
Thread.sleep(23);
log.info("Using frame from ready stream (silent audio) initTime:"+(e-s));
ShortBuffer sBuf = ShortBuffer.allocate(1024);
recorder.recordSamples(44100, 2, sBuf);
on the running. recorder.recordSamples(44100, 2, sBuf); will broken end. with
(java) Process finished with exit code 134 (interrupted by signal 6:SIGABRT)
my version is 1.5.9
new Thread(()->{ while (!majorStreamActive.get()){ if(stopFlag)break; try { long s = System.currentTimeMillis(); log.info("=========audio======="); log.info("=========audio ok======="); long e = System.currentTimeMillis(); Thread.sleep(23); log.info("Using frame from ready stream (silent audio) initTime:"+(e-s)); ShortBuffer sBuf = ShortBuffer.allocate(1024); recorder.recordSamples(44100, 2, sBuf);
on the running. recorder.recordSamples(44100, 2, sBuf); will broken end. with (java) Process finished with exit code 134 (interrupted by signal 6:SIGABRT)