Skip to content

Commit

Permalink
feat: support 3.3.1 for iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
LichKing-2234 committed Mar 8, 2021
1 parent b422ce8 commit 836f3b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ extension AgoraRtcRemoteAudioStats {
"totalActiveTime": totalActiveTime,
"publishDuration": publishDuration,
"qoeQuality": qoeQuality,
"qualityChangedReason": qualityChangedReason
"qualityChangedReason": qualityChangedReason,
"mosValue": mosValue
]
}
}
Expand Down
6 changes: 6 additions & 0 deletions RtcEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ protocol RtcEngineVoiceChangerInterface {
func setAudioEffectPreset(_ params: NSDictionary, _ callback: Callback)

func setVoiceBeautifierPreset(_ params: NSDictionary, _ callback: Callback)

func setVoiceConversionPreset(_ params: NSDictionary, _ callback: Callback)

func setAudioEffectParameters(_ params: NSDictionary, _ callback: Callback)

Expand Down Expand Up @@ -754,6 +756,10 @@ class RtcEngineManager: NSObject, RtcEngineInterface {
callback.code(engine?.setVoiceBeautifierPreset(AgoraVoiceBeautifierPreset(rawValue: params["preset"] as! Int)!))
}

@objc func setVoiceConversionPreset(_ params: NSDictionary, _ callback: Callback) {
callback.code(engine?.setVoiceConversionPreset(AgoraVoiceConversionPreset(rawValue: params["preset"] as! Int)!))
}

@objc func setAudioEffectParameters(_ params: NSDictionary, _ callback: Callback) {
callback.code(engine?.setAudioEffectParameters(AgoraAudioEffectPreset(rawValue: params["preset"] as! Int)!, param1: params["param1"] as! Int32, param2: params["param2"] as! Int32))
}
Expand Down

0 comments on commit 836f3b4

Please sign in to comment.