Skip to content

Commit

Permalink
feat: upgrade to 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LichKing-2234 committed Dec 2, 2020
1 parent cd09ccc commit 4ee51a9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions RtcEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -188,15 +188,23 @@ protocol RtcEngineAudioEffectInterface {
}

protocol RtcEngineVoiceChangerInterface {
@available(*, deprecated)
func setLocalVoiceChanger(_ params: NSDictionary, _ callback: Callback)

@available(*, deprecated)
func setLocalVoiceReverbPreset(_ params: NSDictionary, _ callback: Callback)

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

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

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

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

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

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

protocol RtcEngineVoicePositionInterface {
Expand Down Expand Up @@ -282,8 +290,10 @@ protocol RtcEngineWatermarkInterface {
}

protocol RtcEngineEncryptionInterface {
@available(*, deprecated)
func setEncryptionSecret(_ params: NSDictionary, _ callback: Callback)

@available(*, deprecated)
func setEncryptionMode(_ params: NSDictionary, _ callback: Callback)

func enableEncryption(_ params: NSDictionary, _ callback: Callback)
Expand Down Expand Up @@ -693,6 +703,18 @@ class RtcEngineManager: NSObject, RtcEngineInterface {
@objc func setLocalVoiceReverb(_ params: NSDictionary, _ callback: Callback) {
callback.code(engine?.setLocalVoiceReverbOf(AgoraAudioReverbType(rawValue: params["reverbKey"] as! Int)!, withValue: params["value"] as! Int))
}

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

@objc func setVoiceBeautifierPreset(_ params: NSDictionary, _ callback: Callback) {
callback.code(engine?.setVoiceBeautifierPreset(AgoraVoiceBeautifierPreset(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))
}

@objc func enableSoundPositionIndication(_ params: NSDictionary, _ callback: Callback) {
callback.code(engine?.enableSoundPositionIndication(params["enabled"] as! Bool))
Expand Down

0 comments on commit 4ee51a9

Please sign in to comment.