Skip to content

Commit 127bb61

Browse files
author
xianing
committed
fix external audio source issue
(cherry picked from commit c6cee1a)
1 parent adff87e commit 127bb61

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

iOS/APIExample/Examples/Advanced/CustomAudioSource/CustomAudioSource.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ class CustomAudioSourceMain: BaseViewController {
9898
// leave channel when exiting the view
9999
if isJoined {
100100
exAudio.stopWork()
101+
agoraKit.disableExternalAudioSource()
101102
agoraKit.leaveChannel { (stats) -> Void in
102103
LogUtils.log(message: "left channel, duration: \(stats.duration)", level: .info)
103104
}

iOS/APIExample/Examples/Advanced/CustomPcmAudioSource/CustomPcmAudioSource.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ class CustomPcmAudioSourceMain: BaseViewController {
107107
// leave channel when exiting the view
108108
pcmSourcePush?.stop()
109109
if isJoined {
110+
agoraKit.disableExternalAudioSource()
110111
agoraKit.leaveChannel { (stats) -> Void in
111112
LogUtils.log(message: "left channel, duration: \(stats.duration)", level: .info)
112113
}

0 commit comments

Comments
 (0)