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

Side by Side Diff: webrtc/modules/audio_processing/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: Rebase Created 4 years, 3 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 974 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 bool AudioProcessingImpl::was_stream_delay_set() const { 985 bool AudioProcessingImpl::was_stream_delay_set() const {
986 // Used as callback from submodules, hence locking is not allowed. 986 // Used as callback from submodules, hence locking is not allowed.
987 return capture_.was_stream_delay_set; 987 return capture_.was_stream_delay_set;
988 } 988 }
989 989
990 void AudioProcessingImpl::set_stream_key_pressed(bool key_pressed) { 990 void AudioProcessingImpl::set_stream_key_pressed(bool key_pressed) {
991 rtc::CritScope cs(&crit_capture_); 991 rtc::CritScope cs(&crit_capture_);
992 capture_.key_pressed = key_pressed; 992 capture_.key_pressed = key_pressed;
993 } 993 }
994 994
995 void AudioProcessingImpl::SetLevelControllerInitialLevel(float level) {
996 rtc::CritScope cs(&crit_capture_);
997 private_submodules_->level_controller->SetInitialLevel(level);
998 }
999
995 void AudioProcessingImpl::set_delay_offset_ms(int offset) { 1000 void AudioProcessingImpl::set_delay_offset_ms(int offset) {
996 rtc::CritScope cs(&crit_capture_); 1001 rtc::CritScope cs(&crit_capture_);
997 capture_.delay_offset_ms = offset; 1002 capture_.delay_offset_ms = offset;
998 } 1003 }
999 1004
1000 int AudioProcessingImpl::delay_offset_ms() const { 1005 int AudioProcessingImpl::delay_offset_ms() const {
1001 rtc::CritScope cs(&crit_capture_); 1006 rtc::CritScope cs(&crit_capture_);
1002 return capture_.delay_offset_ms; 1007 return capture_.delay_offset_ms;
1003 } 1008 }
1004 1009
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
1492 debug_dump_.capture.event_msg->mutable_config()->CopyFrom(config); 1497 debug_dump_.capture.event_msg->mutable_config()->CopyFrom(config);
1493 1498
1494 RETURN_ON_ERR(WriteMessageToDebugFile(debug_dump_.debug_file.get(), 1499 RETURN_ON_ERR(WriteMessageToDebugFile(debug_dump_.debug_file.get(),
1495 &debug_dump_.num_bytes_left_for_log_, 1500 &debug_dump_.num_bytes_left_for_log_,
1496 &crit_debug_, &debug_dump_.capture)); 1501 &crit_debug_, &debug_dump_.capture));
1497 return kNoError; 1502 return kNoError;
1498 } 1503 }
1499 #endif // WEBRTC_AUDIOPROC_DEBUG_DUMP 1504 #endif // WEBRTC_AUDIOPROC_DEBUG_DUMP
1500 1505
1501 } // namespace webrtc 1506 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/audio_processing_impl.h ('k') | webrtc/modules/audio_processing/include/audio_processing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698