use recordSamples end with->Process finished with exit code 134 (interrupted by signal 6:SIGABRT)
#2,217 opened on Apr 22, 2024
Repository metrics
- Stars
- (6,985 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
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);
// recorder.record(silentAudioFrame);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}).start();
on the running. recorder.recordSamples(44100, 2, sBuf); will broken end. with (java) Process finished with exit code 134 (interrupted by signal 6:SIGABRT)