squti/Android-Wave-Recorder

Crash on Android 9 and higher for being uninitialized

Closed this issue · 0 comments

The crash log:
Fatal Exception: java.lang.IllegalStateException: startRecording() called on an uninitialized AudioRecord. at android.media.AudioRecord.startRecording(AudioRecord.java:1097) at com.github.squti.androidwaverecorder.WaveRecorder.startRecording(WaveRecorder.kt:83) ...

and It has occurred in Android 9 & 10. Any fix on this?