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

Side by Side Diff: webrtc/voice_engine/voe_audio_processing_impl.cc

Issue 2254973003: Added functionality for specifying the initial signal level to use for the gain estimation in the l… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Merge from upstream CL Created 4 years, 4 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 : _isAecMode(kDefaultEcMode == kEcAec), _shared(shared) { 61 : _isAecMode(kDefaultEcMode == kEcAec), _shared(shared) {
62 WEBRTC_TRACE(kTraceMemory, kTraceVoice, VoEId(_shared->instance_id(), -1), 62 WEBRTC_TRACE(kTraceMemory, kTraceVoice, VoEId(_shared->instance_id(), -1),
63 "VoEAudioProcessingImpl::VoEAudioProcessingImpl() - ctor"); 63 "VoEAudioProcessingImpl::VoEAudioProcessingImpl() - ctor");
64 } 64 }
65 65
66 VoEAudioProcessingImpl::~VoEAudioProcessingImpl() { 66 VoEAudioProcessingImpl::~VoEAudioProcessingImpl() {
67 WEBRTC_TRACE(kTraceMemory, kTraceVoice, VoEId(_shared->instance_id(), -1), 67 WEBRTC_TRACE(kTraceMemory, kTraceVoice, VoEId(_shared->instance_id(), -1),
68 "VoEAudioProcessingImpl::~VoEAudioProcessingImpl() - dtor"); 68 "VoEAudioProcessingImpl::~VoEAudioProcessingImpl() - dtor");
69 } 69 }
70 70
71 void VoEAudioProcessingImpl::SetLevelControllerInitialLevel(float level) {
72 _shared->audio_processing()->SetLevelControllerInitialLevel(level);
73 }
74
71 int VoEAudioProcessingImpl::SetNsStatus(bool enable, NsModes mode) { 75 int VoEAudioProcessingImpl::SetNsStatus(bool enable, NsModes mode) {
72 WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1), 76 WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
73 "SetNsStatus(enable=%d, mode=%d)", enable, mode); 77 "SetNsStatus(enable=%d, mode=%d)", enable, mode);
74 #ifdef WEBRTC_VOICE_ENGINE_NR 78 #ifdef WEBRTC_VOICE_ENGINE_NR
75 if (!_shared->statistics().Initialized()) { 79 if (!_shared->statistics().Initialized()) {
76 _shared->SetLastError(VE_NOT_INITED, kTraceError); 80 _shared->SetLastError(VE_NOT_INITED, kTraceError);
77 return -1; 81 return -1;
78 } 82 }
79 83
80 NoiseSuppression::Level nsLevel = kDefaultNsMode; 84 NoiseSuppression::Level nsLevel = kDefaultNsMode;
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after
1037 _shared->transmit_mixer()->EnableStereoChannelSwapping(enable); 1041 _shared->transmit_mixer()->EnableStereoChannelSwapping(enable);
1038 } 1042 }
1039 1043
1040 bool VoEAudioProcessingImpl::IsStereoChannelSwappingEnabled() { 1044 bool VoEAudioProcessingImpl::IsStereoChannelSwappingEnabled() {
1041 return _shared->transmit_mixer()->IsStereoChannelSwappingEnabled(); 1045 return _shared->transmit_mixer()->IsStereoChannelSwappingEnabled();
1042 } 1046 }
1043 1047
1044 #endif // #ifdef WEBRTC_VOICE_ENGINE_AUDIO_PROCESSING_API 1048 #endif // #ifdef WEBRTC_VOICE_ENGINE_AUDIO_PROCESSING_API
1045 1049
1046 } // namespace webrtc 1050 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698