mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-07-09 17:38:35 +02:00
Update Ghostgram features
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import SGSimpleSettings
|
||||
import Foundation
|
||||
import UIKit
|
||||
import SwiftSignalKit
|
||||
@@ -1071,6 +1072,10 @@ public final class ManagedAudioSessionImpl: NSObject, ManagedAudioSession {
|
||||
var alreadySet = false
|
||||
if self.isHeadsetPluggedInValue {
|
||||
if case .voiceCall = updatedType, case .custom(.builtin) = outputMode {
|
||||
} else if SGSimpleSettings.shared.forceBuiltInMic {
|
||||
let _ = try? AVAudioSession.sharedInstance().setPreferredInput(
|
||||
routes.first { $0.portType == .builtInMic }
|
||||
)
|
||||
} else {
|
||||
loop: for route in routes {
|
||||
switch route.portType {
|
||||
|
||||
Reference in New Issue
Block a user