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

Commit

Permalink
add iOS support for AMR codec. Closes #100
Browse files Browse the repository at this point in the history
  • Loading branch information
jsierles committed Oct 19, 2016
1 parent 17a64f9 commit ebe77ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ AudioQuality: string
AudioEncoding: string
```

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

#### iOS-only fields
Expand Down
2 changes: 2 additions & 0 deletions ios/AudioRecorderManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ - (NSString *) applicationDocumentsDirectory
_audioEncoding =[NSNumber numberWithInt:kAudioFormatMPEGLayer2];
} else if ([encoding isEqual: @"alac"]) {
_audioEncoding =[NSNumber numberWithInt:kAudioFormatAppleLossless];
} else if ([encoding isEqual: @".amr"]) {
_audioEncoding =[NSNumber numberWithInt:kAudioFormatAMR];
}
}

Expand Down

0 comments on commit ebe77ab

Please sign in to comment.