ExperimentalNs
removed + APM not depending anymore on webrtc::Config
Thanks to the elimination of `ExperimentalNs`, there is no need anymore to pass `webrtc::Config` to build APM. Hence, `AudioProcessingBuilder::Create(const webrtc::Config&)` is also removed. Bug: webrtc:5298 Change-Id: I0a3482376a7753434486fe564681f7b9f83939c5 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/232128 Reviewed-by: Sam Zackrisson <saza@webrtc.org> Commit-Queue: Alessio Bazzica <alessiob@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35025}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
25b5e08094
commit
be1b8989d1
@ -65,19 +65,6 @@ static constexpr int kAgcStartupMinVolume = 0;
|
||||
#endif // defined(WEBRTC_CHROMIUM_BUILD)
|
||||
static constexpr int kClippedLevelMin = 70;
|
||||
|
||||
// To be deprecated: Please instead use the flag in the
|
||||
// AudioProcessing::Config::TransientSuppression.
|
||||
//
|
||||
// Use to enable experimental noise suppression. It can be set in the
|
||||
// constructor.
|
||||
// TODO(webrtc:5298): Remove.
|
||||
struct ExperimentalNs {
|
||||
ExperimentalNs() : enabled(false) {}
|
||||
explicit ExperimentalNs(bool enabled) : enabled(enabled) {}
|
||||
static const ConfigOptionID identifier = ConfigOptionID::kExperimentalNs;
|
||||
bool enabled;
|
||||
};
|
||||
|
||||
// The Audio Processing Module (APM) provides a collection of voice processing
|
||||
// components designed for real-time communications software.
|
||||
//
|
||||
@ -800,7 +787,6 @@ class RTC_EXPORT AudioProcessingBuilder {
|
||||
// This creates an APM instance using the previously set components. Calling
|
||||
// the Create function resets the AudioProcessingBuilder to its initial state.
|
||||
rtc::scoped_refptr<AudioProcessing> Create();
|
||||
rtc::scoped_refptr<AudioProcessing> Create(const webrtc::Config& config);
|
||||
|
||||
private:
|
||||
std::unique_ptr<EchoControlFactory> echo_control_factory_;
|
||||
|
Reference in New Issue
Block a user