diff --git a/.nanpa/new-mic-mute-mode.kdl b/.nanpa/new-mic-mute-mode.kdl new file mode 100644 index 000000000..47a4a2cb4 --- /dev/null +++ b/.nanpa/new-mic-mute-mode.kdl @@ -0,0 +1 @@ +patch type="added" "New mic mute mode" diff --git a/LiveKitClient.podspec b/LiveKitClient.podspec index add56b3f6..a264de1d7 100644 --- a/LiveKitClient.podspec +++ b/LiveKitClient.podspec @@ -14,7 +14,7 @@ Pod::Spec.new do |spec| spec.source_files = "Sources/**/*" - spec.dependency("LiveKitWebRTC", "= 125.6422.28") + spec.dependency("LiveKitWebRTC", "= 125.6422.29") spec.dependency("SwiftProtobuf") spec.dependency("Logging", "= 1.5.4") spec.dependency("DequeModule", "= 1.1.4") diff --git a/Package.swift b/Package.swift index abc44c342..7cee07473 100644 --- a/Package.swift +++ b/Package.swift @@ -18,7 +18,7 @@ let package = Package( ], dependencies: [ // LK-Prefixed Dynamic WebRTC XCFramework - .package(url: "https://github.com/livekit/webrtc-xcframework.git", exact: "125.6422.28"), + .package(url: "https://github.com/livekit/webrtc-xcframework.git", exact: "125.6422.29"), .package(url: "https://github.com/apple/swift-protobuf.git", from: "1.26.0"), .package(url: "https://github.com/apple/swift-log.git", from: "1.5.4"), .package(url: "https://github.com/apple/swift-collections.git", from: "1.1.0"), diff --git a/Package@swift-5.9.swift b/Package@swift-5.9.swift index 2586cd384..b19c62ea6 100644 --- a/Package@swift-5.9.swift +++ b/Package@swift-5.9.swift @@ -20,7 +20,7 @@ let package = Package( ], dependencies: [ // LK-Prefixed Dynamic WebRTC XCFramework - .package(url: "https://github.com/livekit/webrtc-xcframework.git", exact: "125.6422.28"), + .package(url: "https://github.com/livekit/webrtc-xcframework.git", exact: "125.6422.29"), .package(url: "https://github.com/apple/swift-protobuf.git", from: "1.29.0"), .package(url: "https://github.com/apple/swift-log.git", from: "1.6.2"), // 1.6.x requires Swift >=5.8 .package(url: "https://github.com/apple/swift-collections.git", from: "1.1.0"), diff --git a/Package@swift-6.0.swift b/Package@swift-6.0.swift index 0dee91d8a..ecc2dc827 100644 --- a/Package@swift-6.0.swift +++ b/Package@swift-6.0.swift @@ -20,7 +20,7 @@ let package = Package( ], dependencies: [ // LK-Prefixed Dynamic WebRTC XCFramework - .package(url: "https://github.com/livekit/webrtc-xcframework.git", exact: "125.6422.28"), + .package(url: "https://github.com/livekit/webrtc-xcframework.git", exact: "125.6422.29"), .package(url: "https://github.com/apple/swift-protobuf.git", from: "1.29.0"), .package(url: "https://github.com/apple/swift-log.git", from: "1.6.2"), // 1.6.x requires Swift >=5.8 .package(url: "https://github.com/apple/swift-collections.git", from: "1.1.0"), diff --git a/Sources/LiveKit/Audio/Manager/AudioManager+MuteMode.swift b/Sources/LiveKit/Audio/Manager/AudioManager+MuteMode.swift index 28d9b3c9a..d4b57aa13 100644 --- a/Sources/LiveKit/Audio/Manager/AudioManager+MuteMode.swift +++ b/Sources/LiveKit/Audio/Manager/AudioManager+MuteMode.swift @@ -29,6 +29,9 @@ public enum MicrophoneMuteMode { /// Restarts the internal `AVAudioEngine` without mic input when muted. /// This is slower, and muted speaker detection does not work. No sound effect is played. case restart + /// Simply mutes the output of the input mixer. + /// The mic indicator remains on, and the internal `AVAudioEngine` continues running without reconfiguration. + case inputMixer case unknown } @@ -73,6 +76,7 @@ extension RTCAudioEngineMuteMode { switch self { case .voiceProcessing: return .voiceProcessing case .restartEngine: return .restart + case .inputMixer: return .inputMixer case .unknown: return .unknown @unknown default: return .unknown } @@ -85,6 +89,7 @@ extension MicrophoneMuteMode { case .unknown: return .unknown case .voiceProcessing: return .voiceProcessing case .restart: return .restartEngine + case .inputMixer: return .inputMixer } } }