| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 public: | 24 public: |
| 25 EchoControlMobileImpl(const AudioProcessing* apm, | 25 EchoControlMobileImpl(const AudioProcessing* apm, |
| 26 CriticalSectionWrapper* crit); | 26 CriticalSectionWrapper* crit); |
| 27 virtual ~EchoControlMobileImpl(); | 27 virtual ~EchoControlMobileImpl(); |
| 28 | 28 |
| 29 int ProcessRenderAudio(const AudioBuffer* audio); | 29 int ProcessRenderAudio(const AudioBuffer* audio); |
| 30 int ProcessCaptureAudio(AudioBuffer* audio); | 30 int ProcessCaptureAudio(AudioBuffer* audio); |
| 31 | 31 |
| 32 // EchoControlMobile implementation. | 32 // EchoControlMobile implementation. |
| 33 bool is_enabled() const override; | 33 bool is_enabled() const override; |
| 34 RoutingMode routing_mode() const override; |
| 35 bool is_comfort_noise_enabled() const override; |
| 34 | 36 |
| 35 // ProcessingComponent implementation. | 37 // ProcessingComponent implementation. |
| 36 int Initialize() override; | 38 int Initialize() override; |
| 37 | 39 |
| 38 private: | 40 private: |
| 39 // EchoControlMobile implementation. | 41 // EchoControlMobile implementation. |
| 40 int Enable(bool enable) override; | 42 int Enable(bool enable) override; |
| 41 int set_routing_mode(RoutingMode mode) override; | 43 int set_routing_mode(RoutingMode mode) override; |
| 42 RoutingMode routing_mode() const override; | |
| 43 int enable_comfort_noise(bool enable) override; | 44 int enable_comfort_noise(bool enable) override; |
| 44 bool is_comfort_noise_enabled() const override; | |
| 45 int SetEchoPath(const void* echo_path, size_t size_bytes) override; | 45 int SetEchoPath(const void* echo_path, size_t size_bytes) override; |
| 46 int GetEchoPath(void* echo_path, size_t size_bytes) const override; | 46 int GetEchoPath(void* echo_path, size_t size_bytes) const override; |
| 47 | 47 |
| 48 // ProcessingComponent implementation. | 48 // ProcessingComponent implementation. |
| 49 void* CreateHandle() const override; | 49 void* CreateHandle() const override; |
| 50 int InitializeHandle(void* handle) const override; | 50 int InitializeHandle(void* handle) const override; |
| 51 int ConfigureHandle(void* handle) const override; | 51 int ConfigureHandle(void* handle) const override; |
| 52 void DestroyHandle(void* handle) const override; | 52 void DestroyHandle(void* handle) const override; |
| 53 int num_handles_required() const override; | 53 int num_handles_required() const override; |
| 54 int GetHandleError(void* handle) const override; | 54 int GetHandleError(void* handle) const override; |
| 55 | 55 |
| 56 const AudioProcessing* apm_; | 56 const AudioProcessing* apm_; |
| 57 CriticalSectionWrapper* crit_; | 57 CriticalSectionWrapper* crit_; |
| 58 RoutingMode routing_mode_; | 58 RoutingMode routing_mode_; |
| 59 bool comfort_noise_enabled_; | 59 bool comfort_noise_enabled_; |
| 60 unsigned char* external_echo_path_; | 60 unsigned char* external_echo_path_; |
| 61 }; | 61 }; |
| 62 } // namespace webrtc | 62 } // namespace webrtc |
| 63 | 63 |
| 64 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CONTROL_MOBILE_IMPL_H_ | 64 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CONTROL_MOBILE_IMPL_H_ |
| OLD | NEW |