mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Remove debugging
This commit is contained in:
parent
2c9a12e0fb
commit
0a00542a0d
@ -854,8 +854,6 @@ public final class ManagedAudioSession {
|
||||
}
|
||||
|
||||
private func setupOutputMode(_ outputMode: AudioSessionOutputMode, type: ManagedAudioSessionType) throws {
|
||||
var outputMode = outputMode
|
||||
outputMode = .custom(.builtin)
|
||||
managedAudioSessionLog("ManagedAudioSession setup \(outputMode) for \(type)")
|
||||
var resetToBuiltin = false
|
||||
switch outputMode {
|
||||
|
@ -1575,20 +1575,17 @@ public final class PresentationGroupCallImpl: PresentationGroupCall {
|
||||
self.internalStatePromise.set(.single(internalState))
|
||||
|
||||
if let audioSessionControl = audioSessionControl, previousControl == nil {
|
||||
if "".isEmpty {
|
||||
if self.isStream {
|
||||
audioSessionControl.setOutputMode(.system)
|
||||
} else {
|
||||
if self.isStream {
|
||||
audioSessionControl.setOutputMode(.system)
|
||||
} else {
|
||||
switch self.currentSelectedAudioOutputValue {
|
||||
case .speaker:
|
||||
audioSessionControl.setOutputMode(.custom(self.currentSelectedAudioOutputValue))
|
||||
default:
|
||||
break
|
||||
}
|
||||
switch self.currentSelectedAudioOutputValue {
|
||||
case .speaker:
|
||||
audioSessionControl.setOutputMode(.custom(self.currentSelectedAudioOutputValue))
|
||||
default:
|
||||
break
|
||||
}
|
||||
audioSessionControl.setup(synchronous: false)
|
||||
}
|
||||
audioSessionControl.setup(synchronous: false)
|
||||
}
|
||||
|
||||
self.audioSessionShouldBeActive.set(true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user