Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use recordSamples end with->Process finished with exit code 134 (interrupted by signal 6:SIGABRT) #2217

Open
nocarethancare opened this issue Apr 22, 2024 · 0 comments

Comments

@nocarethancare
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants