Merge pull request #1494 from simophin/ses-1935-audio-recording-crash

[SES-1935] Audio recording crash
This commit is contained in:
Andrew 2024-05-29 11:38:00 +09:30 committed by GitHub
commit 66c0f940aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,8 @@ public class AudioRecorder {
Log.i(TAG, "Running startRecording() + " + Thread.currentThread().getId());
try {
if (audioCodec != null) {
throw new AssertionError("We can only record once at a time.");
Log.e(TAG, "Trying to start recording while another recording is in progress, exiting...");
return;
}
ParcelFileDescriptor fds[] = ParcelFileDescriptor.createPipe();