Skip to content

Commit

Permalink
Remove unused audio capture option
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshihorie committed Sep 16, 2024
1 parent df0629a commit e370855
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 0 additions & 2 deletions Sources/LiveKit/Track/Local/LocalAudioTrack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ public class LocalAudioTrack: Track, LocalTrack, AudioTrack {
"googNoiseSuppression": options.noiseSuppression.toString(),
"googTypingNoiseDetection": options.typingNoiseDetection.toString(),
"googHighpassFilter": options.highpassFilter.toString(),
"googNoiseSuppression2": options.experimentalNoiseSuppression.toString(),
"googAutoGainControl2": options.experimentalAutoGainControl.toString(),
]

let audioConstraints = DispatchQueue.liveKitWebRTC.sync { LKRTCMediaConstraints(mandatoryConstraints: nil,
Expand Down
12 changes: 1 addition & 11 deletions Sources/LiveKit/Types/Options/AudioCaptureOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ public class AudioCaptureOptions: NSObject, CaptureOptions {
@objc
public let highpassFilter: Bool

@objc
public let experimentalNoiseSuppression: Bool = false

@objc
public let experimentalAutoGainControl: Bool = false

public init(echoCancellation: Bool = true,
noiseSuppression: Bool = true,
autoGainControl: Bool = true,
Expand All @@ -66,9 +60,7 @@ public class AudioCaptureOptions: NSObject, CaptureOptions {
noiseSuppression == other.noiseSuppression &&
autoGainControl == other.autoGainControl &&
typingNoiseDetection == other.typingNoiseDetection &&
highpassFilter == other.highpassFilter &&
experimentalNoiseSuppression == other.experimentalNoiseSuppression &&
experimentalAutoGainControl == other.experimentalAutoGainControl
highpassFilter == other.highpassFilter
}

override public var hash: Int {
Expand All @@ -78,8 +70,6 @@ public class AudioCaptureOptions: NSObject, CaptureOptions {
hasher.combine(autoGainControl)
hasher.combine(typingNoiseDetection)
hasher.combine(highpassFilter)
hasher.combine(experimentalNoiseSuppression)
hasher.combine(experimentalAutoGainControl)
return hasher.finalize()
}
}
Expand Down

0 comments on commit e370855

Please sign in to comment.