Skip to content
This repository was archived by the owner on Aug 21, 2020. It is now read-only.

Commit ebe77ab

Browse files
committed
add iOS support for AMR codec. Closes #100
1 parent 17a64f9 commit ebe77ab

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ AudioQuality: string
5454
AudioEncoding: string
5555
```
5656

57-
Encodings supported on iOS: `lpcm, ima4, aac, MAC3, MAC6, ulaw, alaw, mp1, mp2, alac`
57+
Encodings supported on iOS: `lpcm, ima4, aac, MAC3, MAC6, ulaw, alaw, mp1, mp2, alac, amr`
5858
Encodings supported on Android: `aac, aac_eld, amr_nb, amr_wb, he_aac, vorbis`
5959

6060
#### iOS-only fields

ios/AudioRecorderManager.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ - (NSString *) applicationDocumentsDirectory
143143
_audioEncoding =[NSNumber numberWithInt:kAudioFormatMPEGLayer2];
144144
} else if ([encoding isEqual: @"alac"]) {
145145
_audioEncoding =[NSNumber numberWithInt:kAudioFormatAppleLossless];
146+
} else if ([encoding isEqual: @".amr"]) {
147+
_audioEncoding =[NSNumber numberWithInt:kAudioFormatAMR];
146148
}
147149
}
148150

0 commit comments

Comments
 (0)