Skip to content

Commit

Permalink
fix. ios native type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrixbirds committed Sep 24, 2019
1 parent 7b344e0 commit 6773bf0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ios/RCTAgora/RCTAgora.m
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ - (NSDictionary *)constantsToExport {
RCT_EXPORT_METHOD(startAudioMixing:(NSDictionary *) options
resolve:(RCTPromiseResolveBlock)resolve
reject:(RCTPromiseRejectBlock)reject) {
NSInteger res = [self.rtcEngine startAudioMixing:[options[@"filepath"] stringValue]
NSInteger res = [self.rtcEngine startAudioMixing:[options[@"filepath"]]
loopback:[options[@"loopback"] boolValue]
replace:[options[@"replace"] boolValue]
cycle:[options[@"cycle"] integerValue]];
Expand Down Expand Up @@ -1038,7 +1038,7 @@ - (NSDictionary *)constantsToExport {
resolve:(RCTPromiseResolveBlock)resolve
reject:(RCTPromiseRejectBlock)reject) {
NSInteger res = [self.rtcEngine playEffect:(int)[options[@"soundid"] integerValue]
filePath:[options[@"filepath"] stringValue]
filePath:[options[@"filepath"]]
loopCount:(int)[options[@"loopcount"] integerValue]
pitch:[options[@"pitch"] doubleValue]
pan:[options[@"pan"] doubleValue]
Expand Down Expand Up @@ -1157,7 +1157,7 @@ - (NSDictionary *)constantsToExport {
resolve:(RCTPromiseResolveBlock)resolve
reject:(RCTPromiseRejectBlock)reject) {
AgoraAudioRecordingQuality qualityType = (AgoraAudioRecordingQuality)[options[@"quality"] integerValue];
NSInteger res = [self.rtcEngine startAudioRecording:[options[@"filepath"] stringValue] quality:qualityType];
NSInteger res = [self.rtcEngine startAudioRecording:[options[@"filepath"]] quality:qualityType];
if (res == 0) {
resolve(nil);
} else {
Expand Down

0 comments on commit 6773bf0

Please sign in to comment.