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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |