echo_canceller3_factory.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #ifndef API_AUDIO_ECHO_CANCELLER3_FACTORY_H_
  11. #define API_AUDIO_ECHO_CANCELLER3_FACTORY_H_
  12. #include <memory>
  13. #include "api/audio/echo_canceller3_config.h"
  14. #include "api/audio/echo_control.h"
  15. #include "rtc_base/system/rtc_export.h"
  16. namespace webrtc {
  17. class RTC_EXPORT EchoCanceller3Factory : public EchoControlFactory {
  18. public:
  19. // Factory producing EchoCanceller3 instances with the default configuration.
  20. EchoCanceller3Factory();
  21. // Factory producing EchoCanceller3 instances with the specified
  22. // configuration.
  23. explicit EchoCanceller3Factory(const EchoCanceller3Config& config);
  24. // Creates an EchoCanceller3 with a specified channel count and sampling rate.
  25. std::unique_ptr<EchoControl> Create(int sample_rate_hz,
  26. int num_render_channels,
  27. int num_capture_channels) override;
  28. private:
  29. const EchoCanceller3Config config_;
  30. };
  31. } // namespace webrtc
  32. #endif // API_AUDIO_ECHO_CANCELLER3_FACTORY_H_