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 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 | 678 |
679 // ERL = 10log_10(P_far / P_echo) | 679 // ERL = 10log_10(P_far / P_echo) |
680 AudioProcessing::Statistic echo_return_loss; | 680 AudioProcessing::Statistic echo_return_loss; |
681 | 681 |
682 // ERLE = 10log_10(P_echo / P_out) | 682 // ERLE = 10log_10(P_echo / P_out) |
683 AudioProcessing::Statistic echo_return_loss_enhancement; | 683 AudioProcessing::Statistic echo_return_loss_enhancement; |
684 | 684 |
685 // (Pre non-linear processing suppression) A_NLP = 10log_10(P_echo / P_a) | 685 // (Pre non-linear processing suppression) A_NLP = 10log_10(P_echo / P_a) |
686 AudioProcessing::Statistic a_nlp; | 686 AudioProcessing::Statistic a_nlp; |
687 | 687 |
688 // Fraction of time that the AEC linear filter is divergent, in a 0.5-second | 688 // Fraction of time that the AEC linear filter is divergent, in a 1-second |
689 // non-overlapped aggregation window. | 689 // non-overlapped aggregation window. |
690 float divergent_filter_fraction; | 690 float divergent_filter_fraction; |
691 }; | 691 }; |
692 | 692 |
693 // TODO(ajm): discuss the metrics update period. | 693 // TODO(ajm): discuss the metrics update period. |
694 virtual int GetMetrics(Metrics* metrics) = 0; | 694 virtual int GetMetrics(Metrics* metrics) = 0; |
695 | 695 |
696 // Enables computation and logging of delay values. Statistics are obtained | 696 // Enables computation and logging of delay values. Statistics are obtained |
697 // through |GetDelayMetrics()|. | 697 // through |GetDelayMetrics()|. |
698 virtual int enable_delay_logging(bool enable) = 0; | 698 virtual int enable_delay_logging(bool enable) = 0; |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 // This does not impact the size of frames passed to |ProcessStream()|. | 980 // This does not impact the size of frames passed to |ProcessStream()|. |
981 virtual int set_frame_size_ms(int size) = 0; | 981 virtual int set_frame_size_ms(int size) = 0; |
982 virtual int frame_size_ms() const = 0; | 982 virtual int frame_size_ms() const = 0; |
983 | 983 |
984 protected: | 984 protected: |
985 virtual ~VoiceDetection() {} | 985 virtual ~VoiceDetection() {} |
986 }; | 986 }; |
987 } // namespace webrtc | 987 } // namespace webrtc |
988 | 988 |
989 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 989 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
OLD | NEW |