From 29d377028037267c051c44befedd719294f5a40d Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Tue, 10 Sep 2024 15:12:03 +0200 Subject: [PATCH] Fix build --- Linphone/Utils/AudioRouteUtils.swift | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Linphone/Utils/AudioRouteUtils.swift b/Linphone/Utils/AudioRouteUtils.swift index b5812a0e8..01c418383 100644 --- a/Linphone/Utils/AudioRouteUtils.swift +++ b/Linphone/Utils/AudioRouteUtils.swift @@ -126,8 +126,7 @@ class AudioRouteUtils { print("[Audio Route Helper] No call found, setting audio route on Core") } - let conference = core.conference - let audioDevice = conference != nil && conference?.isIn == true ? conference!.outputAudioDevice : currentCall != nil ? currentCall!.outputAudioDevice : core.outputAudioDevice + let audioDevice = currentCall != nil ? currentCall!.outputAudioDevice : core.outputAudioDevice print("[Audio Route Helper] Playback audio currently in use is [\(audioDevice?.deviceName ?? "n/a")] with type (\(audioDevice?.type ?? .Unknown)") return audioDevice?.type == AudioDevice.Kind.Speaker } @@ -138,9 +137,7 @@ class AudioRouteUtils { return false } let currentCall = call != nil ? call : core.currentCall != nil ? core.currentCall : core.calls[0] - let conference = core.conference - - let audioDevice = conference != nil && conference?.isIn == true ? conference!.outputAudioDevice : currentCall?.outputAudioDevice + let audioDevice = currentCall != nil ? currentCall!.outputAudioDevice : core.outputAudioDevice print("[Audio Route Helper] Playback audio device currently in use is [\(audioDevice?.deviceName ?? "n/a")] with type (\(audioDevice?.type ?? .Unknown)") return audioDevice?.type == AudioDevice.Kind.Bluetooth }