There is an error that appears when recording is stopped, this error is not present in record 5.1.0 and record_android 1.1.0 versions, I didn't change any code, just upgraded the library
E/AudioRecorder( 4042): null
E/AudioRecorder( 4042): java.lang.InterruptedException
E/AudioRecorder( 4042): at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1048)
E/AudioRecorder( 4042): at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:230)
E/AudioRecorder( 4042): at com.llfbandit.record.record.recorder.RecordThread.startRecording$lambda$0(RecordThread.kt:124)
E/AudioRecorder( 4042): at com.llfbandit.record.record.recorder.RecordThread.$r8$lambda$ldmev7sgpiaTAinIeDKedqNmCzU(Unknown Source:0)
E/AudioRecorder( 4042): at com.llfbandit.record.record.recorder.RecordThread$$ExternalSyntheticLambda0.run(Unknown Source:2)
E/AudioRecorder( 4042): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
E/AudioRecorder( 4042): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
E/AudioRecorder( 4042): at java.lang.Thread.run(Thread.java:1012)
To Reproduce
My code just like this, and it thrown an exception
5.1.0
Environment
Bug
There is an error that appears when recording is stopped, this error is not present in record 5.1.0 and record_android 1.1.0 versions, I didn't change any code, just upgraded the library
RecordConfig that I use:
Error that I get:
To Reproduce
My code just like this, and it thrown an exception
Expected behavior
No error just like previous version (record 5.0.5 with record_android 1.1.0)
Additional context
Depedencies that I use: