Skip to content

Commit c760efc

Browse files
authored
Merge pull request #118 from AgoraIO/fix/custom-audio-render
fix custom audio render
2 parents 3a7500c + 9e0b9ce commit c760efc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

iOS/APIExample/Examples/Advanced/CustomAudioRender/CustomAudioRender.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ class CustomAudioRenderMain: BaseViewController {
7272
exAudio.setupExternalAudio(withAgoraKit: agoraKit, sampleRate: UInt32(sampleRate), channels: UInt32(channel), audioCRMode: .sdkCaptureExterRender, ioType: .remoteIO)
7373
// important!! this example is using onPlaybackAudioFrame to do custom rendering
7474
// by default the audio output will still be processed by SDK hence below api call is mandatory to disable that behavior
75-
agoraKit.setParameters("{\"che.audio.external_render\": false}")
75+
agoraKit.setParameters("{\"che.audio.external_render\": true}")
76+
agoraKit.setParameters("{\"che.audio.keep.audiosession\": true}")
7677

7778

7879

0 commit comments

Comments
 (0)