nosnia-audio-recorder 0.7.2 → 0.7.3

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.
@@ -217,13 +217,15 @@ RCT_EXPORT_METHOD(startRecording:(NSDictionary *)options
217
217
 
218
218
  // Create recording settings dictionary with safety checks
219
219
  @try {
220
- // Use AAC format with validated parameters
221
- // AVAudioRecorder will encode to M4A/AAC automatically
220
+ // Use Linear PCM as the most basic and universally supported format
221
+ // iOS will handle audio encoding reliably with PCM
222
222
  NSDictionary *recordingSettings = @{
223
- AVFormatIDKey: @(kAudioFormatMPEG4AAC),
223
+ AVFormatIDKey: @(kAudioFormatLinearPCM),
224
224
  AVSampleRateKey: sampleRate,
225
225
  AVNumberOfChannelsKey: channels,
226
- AVEncoderBitRateKey: bitrate,
226
+ AVLinearPCMBitDepthKey: @(16),
227
+ AVLinearPCMIsBigEndianKey: @(NO),
228
+ AVLinearPCMIsNonInterleaved: @(NO),
227
229
  AVEncoderAudioQualityKey: @(AVAudioQualityHigh)
228
230
  };
229
231
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nosnia-audio-recorder",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
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",