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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 enum BackgroundNoiseMode { | 74 enum BackgroundNoiseMode { |
75 kBgnOn, // Default behavior with eternal noise. | 75 kBgnOn, // Default behavior with eternal noise. |
76 kBgnFade, // Noise fades to zero after some time. | 76 kBgnFade, // Noise fades to zero after some time. |
77 kBgnOff // Background noise is always zero. | 77 kBgnOff // Background noise is always zero. |
78 }; | 78 }; |
79 | 79 |
80 struct Config { | 80 struct Config { |
81 Config() | 81 Config() |
82 : sample_rate_hz(16000), | 82 : sample_rate_hz(16000), |
83 enable_audio_classifier(false), | 83 enable_audio_classifier(false), |
| 84 enable_post_decode_vad(false), |
84 max_packets_in_buffer(50), | 85 max_packets_in_buffer(50), |
85 // |max_delay_ms| has the same effect as calling SetMaximumDelay(). | 86 // |max_delay_ms| has the same effect as calling SetMaximumDelay(). |
86 max_delay_ms(2000), | 87 max_delay_ms(2000), |
87 background_noise_mode(kBgnOff), | 88 background_noise_mode(kBgnOff), |
88 playout_mode(kPlayoutOn), | 89 playout_mode(kPlayoutOn), |
89 enable_fast_accelerate(false) {} | 90 enable_fast_accelerate(false) {} |
90 | 91 |
91 std::string ToString() const; | 92 std::string ToString() const; |
92 | 93 |
93 int sample_rate_hz; // Initial value. Will change with input data. | 94 int sample_rate_hz; // Initial value. Will change with input data. |
94 bool enable_audio_classifier; | 95 bool enable_audio_classifier; |
| 96 bool enable_post_decode_vad; |
95 size_t max_packets_in_buffer; | 97 size_t max_packets_in_buffer; |
96 int max_delay_ms; | 98 int max_delay_ms; |
97 BackgroundNoiseMode background_noise_mode; | 99 BackgroundNoiseMode background_noise_mode; |
98 NetEqPlayoutMode playout_mode; | 100 NetEqPlayoutMode playout_mode; |
99 bool enable_fast_accelerate; | 101 bool enable_fast_accelerate; |
100 }; | 102 }; |
101 | 103 |
102 enum ReturnCodes { | 104 enum ReturnCodes { |
103 kOK = 0, | 105 kOK = 0, |
104 kFail = -1, | 106 kFail = -1, |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 | 288 |
287 protected: | 289 protected: |
288 NetEq() {} | 290 NetEq() {} |
289 | 291 |
290 private: | 292 private: |
291 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); | 293 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); |
292 }; | 294 }; |
293 | 295 |
294 } // namespace webrtc | 296 } // namespace webrtc |
295 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ | 297 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ |
OLD | NEW |