squti / Android-Wave-Recorder

A powerful and efficient library to record WAVE form audio files (WAV) in Android
MIT License
239 stars 44 forks source link

Crash on Android 9 and higher for being uninitialized #1

Closed ErfanThinker closed 4 years ago

ErfanThinker commented 4 years ago

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?