Skip to content

Commit 3b2897e

Browse files
committed
fix: recorder stop during pause or interruption
1 parent a2ff918 commit 3b2897e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native-audio-api/android/src/main/cpp/audioapi/android/core/AndroidAudioRecorder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Result<std::tuple<std::string, double, double>, std::string> AndroidAudioRecorde
164164
double outputFileSize = 0.0;
165165
double outputDuration = 0.0;
166166

167-
if (!isRecording()) {
167+
if (isIdle()) {
168168
return Result<std::tuple<std::string, double, double>, std::string>::Err(
169169
"Recorder is not in recording state.");
170170
}

0 commit comments

Comments
 (0)