Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: webrtc/modules/audio_coding/neteq/include/neteq.h

Issue 1425133002: ACM/NetEq: Restructure how post-decode VAD is enabled (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@acm-recv-nack
Patch Set: Actually doing something with the new config Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/main/include/audio_coding_module.h ('k') | webrtc/modules/audio_coding/neteq/neteq.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698