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

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

Issue 2615983002: Remove AudioClassifier (Closed)
Patch Set: Created 3 years, 11 months 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 public: 69 public:
70 enum BackgroundNoiseMode { 70 enum BackgroundNoiseMode {
71 kBgnOn, // Default behavior with eternal noise. 71 kBgnOn, // Default behavior with eternal noise.
72 kBgnFade, // Noise fades to zero after some time. 72 kBgnFade, // Noise fades to zero after some time.
73 kBgnOff // Background noise is always zero. 73 kBgnOff // Background noise is always zero.
74 }; 74 };
75 75
76 struct Config { 76 struct Config {
77 Config() 77 Config()
78 : sample_rate_hz(16000), 78 : sample_rate_hz(16000),
79 enable_audio_classifier(false),
80 enable_post_decode_vad(false), 79 enable_post_decode_vad(false),
81 max_packets_in_buffer(50), 80 max_packets_in_buffer(50),
82 // |max_delay_ms| has the same effect as calling SetMaximumDelay(). 81 // |max_delay_ms| has the same effect as calling SetMaximumDelay().
83 max_delay_ms(2000), 82 max_delay_ms(2000),
84 background_noise_mode(kBgnOff), 83 background_noise_mode(kBgnOff),
85 playout_mode(kPlayoutOn), 84 playout_mode(kPlayoutOn),
86 enable_fast_accelerate(false) {} 85 enable_fast_accelerate(false) {}
87 86
88 std::string ToString() const; 87 std::string ToString() const;
89 88
90 int sample_rate_hz; // Initial value. Will change with input data. 89 int sample_rate_hz; // Initial value. Will change with input data.
91 bool enable_audio_classifier;
92 bool enable_post_decode_vad; 90 bool enable_post_decode_vad;
93 size_t max_packets_in_buffer; 91 size_t max_packets_in_buffer;
94 int max_delay_ms; 92 int max_delay_ms;
95 BackgroundNoiseMode background_noise_mode; 93 BackgroundNoiseMode background_noise_mode;
96 NetEqPlayoutMode playout_mode; 94 NetEqPlayoutMode playout_mode;
97 bool enable_fast_accelerate; 95 bool enable_fast_accelerate;
98 bool enable_muted_state = false; 96 bool enable_muted_state = false;
99 }; 97 };
100 98
101 enum ReturnCodes { 99 enum ReturnCodes {
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 302
305 protected: 303 protected:
306 NetEq() {} 304 NetEq() {}
307 305
308 private: 306 private:
309 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); 307 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq);
310 }; 308 };
311 309
312 } // namespace webrtc 310 } // namespace webrtc
313 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ 311 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/audio_classifier_unittest.cc ('k') | webrtc/modules/audio_coding/neteq/neteq.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698