react-native-audio-api 0.11.0-alpha.10 → 0.11.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -111,7 +111,7 @@ Result<std::string, std::string> AndroidAudioRecorder::start() {
111
111
  std::scoped_lock startLock(callbackMutex_, fileWriterMutex_, adapterNodeMutex_);
112
112
 
113
113
  if (isRecording()) {
114
- return Result<std::string, std::string>::Ok(std::format("file://{}", filePath_));
114
+ return Result<std::string, std::string>::Err("Recorder is already recording");
115
115
  }
116
116
 
117
117
  auto streamResult = openAudioStream();
@@ -74,7 +74,7 @@ IOSAudioRecorder::~IOSAudioRecorder()
74
74
  Result<std::string, std::string> IOSAudioRecorder::start()
75
75
  {
76
76
  if (isRecording()) {
77
- return Result<std::string, std::string>::Err("Already recording");
77
+ return Result<std::string, std::string>::Err("Recorder is already recording");
78
78
  }
79
79
 
80
80
  std::scoped_lock startLock(callbackMutex_, fileWriterMutex_, adapterNodeMutex_);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-audio-api",
3
- "version": "0.11.0-alpha.10",
3
+ "version": "0.11.0-alpha.11",
4
4
  "description": "react-native-audio-api provides system for controlling audio in React Native environment compatible with Web Audio API specification",
5
5
  "bin": {
6
6
  "setup-rn-audio-api-web": "./scripts/setup-rn-audio-api-web.js"