Skip to content

Commit 0627e00

Browse files
committed
fix: bypass voice processing only for stereo
1 parent e506298 commit 0627e00

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

ios/RCTWebRTC/Utils/AudioDeviceModule/AudioDeviceModule.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright © 2025 Stream.io Inc. All rights reserved.
2+
// Copyright © 2026 Stream.io Inc. All rights reserved.
33
//
44

55
import AudioToolbox
@@ -92,7 +92,7 @@ import WebRTC
9292
return ".willReleaseAudioEngine(\(engine))"
9393

9494
case .configureInputFromSource(let engine, let source, let destination, let format):
95-
return ".configureInputFromSource(\(engine), source:\(source?.description ?? "nil"), destination:\(destination), format:\(format))"
95+
return ".configureInputFromSource(\(engine), source:\(source), destination:\(destination), format:\(format))"
9696

9797
case .configureOutputFromSource(let engine, let source, let destination, let format):
9898
return ".configureOutputFromSource(\(engine), source:\(source), destination:\(destination?.description ?? "nil"), format:\(format))"
@@ -221,9 +221,6 @@ import WebRTC
221221

222222
audioLevelsAdapter.subject = audioLevelSubject
223223
source.observer = self
224-
225-
source.isVoiceProcessingBypassed = true
226-
isVoiceProcessingBypassedSubject.send(true)
227224
}
228225

229226
/// Objective-C compatible convenience initializer.
@@ -255,6 +252,7 @@ import WebRTC
255252
/// sendAudio capability.
256253
_ = source.setRecordingAlwaysPreparedMode(false)
257254
source.prefersStereoPlayout = isPreferred
255+
source.isVoiceProcessingBypassed = isPreferred
258256
}
259257

260258
/// Starts or stops speaker playout on the ADM, retrying transient failures.

0 commit comments

Comments
 (0)