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 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
983 bool AudioProcessingImpl::was_stream_delay_set() const { | 983 bool AudioProcessingImpl::was_stream_delay_set() const { |
984 // Used as callback from submodules, hence locking is not allowed. | 984 // Used as callback from submodules, hence locking is not allowed. |
985 return capture_.was_stream_delay_set; | 985 return capture_.was_stream_delay_set; |
986 } | 986 } |
987 | 987 |
988 void AudioProcessingImpl::set_stream_key_pressed(bool key_pressed) { | 988 void AudioProcessingImpl::set_stream_key_pressed(bool key_pressed) { |
989 rtc::CritScope cs(&crit_capture_); | 989 rtc::CritScope cs(&crit_capture_); |
990 capture_.key_pressed = key_pressed; | 990 capture_.key_pressed = key_pressed; |
991 } | 991 } |
992 | 992 |
| 993 void AudioProcessingImpl::SetLevelControllerInitialLevel(float level) { |
| 994 rtc::CritScope cs(&crit_capture_); |
| 995 private_submodules_->level_controller->SetInitialLevel(level); |
| 996 } |
| 997 |
993 void AudioProcessingImpl::set_delay_offset_ms(int offset) { | 998 void AudioProcessingImpl::set_delay_offset_ms(int offset) { |
994 rtc::CritScope cs(&crit_capture_); | 999 rtc::CritScope cs(&crit_capture_); |
995 capture_.delay_offset_ms = offset; | 1000 capture_.delay_offset_ms = offset; |
996 } | 1001 } |
997 | 1002 |
998 int AudioProcessingImpl::delay_offset_ms() const { | 1003 int AudioProcessingImpl::delay_offset_ms() const { |
999 rtc::CritScope cs(&crit_capture_); | 1004 rtc::CritScope cs(&crit_capture_); |
1000 return capture_.delay_offset_ms; | 1005 return capture_.delay_offset_ms; |
1001 } | 1006 } |
1002 | 1007 |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1490 debug_dump_.capture.event_msg->mutable_config()->CopyFrom(config); | 1495 debug_dump_.capture.event_msg->mutable_config()->CopyFrom(config); |
1491 | 1496 |
1492 RETURN_ON_ERR(WriteMessageToDebugFile(debug_dump_.debug_file.get(), | 1497 RETURN_ON_ERR(WriteMessageToDebugFile(debug_dump_.debug_file.get(), |
1493 &debug_dump_.num_bytes_left_for_log_, | 1498 &debug_dump_.num_bytes_left_for_log_, |
1494 &crit_debug_, &debug_dump_.capture)); | 1499 &crit_debug_, &debug_dump_.capture)); |
1495 return kNoError; | 1500 return kNoError; |
1496 } | 1501 } |
1497 #endif // WEBRTC_AUDIOPROC_DEBUG_DUMP | 1502 #endif // WEBRTC_AUDIOPROC_DEBUG_DUMP |
1498 | 1503 |
1499 } // namespace webrtc | 1504 } // namespace webrtc |
OLD | NEW |