nosnia-audio-recorder 0.6.3 → 0.7.0
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.
|
@@ -204,12 +204,14 @@ RCT_EXPORT_METHOD(startRecording:(NSDictionary *)options
|
|
|
204
204
|
|
|
205
205
|
// Create recording settings dictionary with safety checks
|
|
206
206
|
@try {
|
|
207
|
-
// Use
|
|
207
|
+
// Use Linear PCM - most basic, universally supported format
|
|
208
208
|
NSDictionary *recordingSettings = @{
|
|
209
|
-
AVFormatIDKey: @(
|
|
209
|
+
AVFormatIDKey: @(kAudioFormatLinearPCM),
|
|
210
210
|
AVSampleRateKey: @(16000),
|
|
211
211
|
AVNumberOfChannelsKey: @(1),
|
|
212
|
-
|
|
212
|
+
AVLinearPCMBitDepthKey: @(16),
|
|
213
|
+
AVLinearPCMIsBigEndianKey: @(NO),
|
|
214
|
+
AVLinearPCMIsNonInterleaved: @(NO),
|
|
213
215
|
AVEncoderAudioQualityKey: @(AVAudioQualityLow)
|
|
214
216
|
};
|
|
215
217
|
|
package/package.json
CHANGED