nosnia-audio-recorder 0.7.3 → 0.7.5

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.
@@ -90,7 +90,7 @@ RCT_EXPORT_MODULE(NosniaAudioRecorder)
90
90
  NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
91
91
  [formatter setDateFormat:@"yyyyMMdd_HHmmss"];
92
92
  NSString *timestamp = [formatter stringFromDate:[NSDate date]];
93
- return [NSString stringWithFormat:@"recording_%@.mp3", timestamp];
93
+ return [NSString stringWithFormat:@"recording_%@.wav", timestamp];
94
94
  }
95
95
 
96
96
  RCT_EXPORT_METHOD(startRecording:(NSDictionary *)options
@@ -237,7 +237,7 @@ RCT_EXPORT_METHOD(startRecording:(NSDictionary *)options
237
237
 
238
238
  // Validate all required keys are present
239
239
  if (!recordingSettings[AVFormatIDKey] || !recordingSettings[AVSampleRateKey] ||
240
- !recordingSettings[AVNumberOfChannelsKey] || !recordingSettings[AVEncoderBitRateKey]) {
240
+ !recordingSettings[AVNumberOfChannelsKey] || !recordingSettings[AVLinearPCMBitDepthKey]) {
241
241
  reject(@"SETTINGS_ERROR", @"Incomplete recording settings", nil);
242
242
  return;
243
243
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nosnia-audio-recorder",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "description": "This is a modern audio recorder which actually works cross platform",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",