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

Side by Side Diff: webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.h

Issue 2035213002: Only update Intelligibility Enhancer gains every 10 chunks (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 std::unique_ptr<LappedTransform> render_mangler_; 106 std::unique_ptr<LappedTransform> render_mangler_;
107 107
108 VoiceActivityDetector vad_; 108 VoiceActivityDetector vad_;
109 std::vector<int16_t> audio_s16_; 109 std::vector<int16_t> audio_s16_;
110 size_t chunks_since_voice_; 110 size_t chunks_since_voice_;
111 bool is_speech_; 111 bool is_speech_;
112 float snr_; 112 float snr_;
113 bool is_active_; 113 bool is_active_;
114 114
115 size_t num_chunks_;
116
115 std::vector<float> noise_estimation_buffer_; 117 std::vector<float> noise_estimation_buffer_;
116 SwapQueue<std::vector<float>, RenderQueueItemVerifier<float>> 118 SwapQueue<std::vector<float>, RenderQueueItemVerifier<float>>
117 noise_estimation_queue_; 119 noise_estimation_queue_;
118 }; 120 };
119 121
120 } // namespace webrtc 122 } // namespace webrtc
121 123
122 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INTELLIGIBILITY_INTELLIGIBILITY_ENHAN CER_H_ 124 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INTELLIGIBILITY_INTELLIGIBILITY_ENHAN CER_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698