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
|
|
221
|
-
//
|
|
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: @(
|
|
223
|
+
AVFormatIDKey: @(kAudioFormatLinearPCM),
|
|
224
224
|
AVSampleRateKey: sampleRate,
|
|
225
225
|
AVNumberOfChannelsKey: channels,
|
|
226
|
-
|
|
226
|
+
AVLinearPCMBitDepthKey: @(16),
|
|
227
|
+
AVLinearPCMIsBigEndianKey: @(NO),
|
|
228
|
+
AVLinearPCMIsNonInterleaved: @(NO),
|
|
227
229
|
AVEncoderAudioQualityKey: @(AVAudioQualityHigh)
|
|
228
230
|
};
|
|
229
231
|
|
package/package.json
CHANGED