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 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | |
1000 void AudioProcessingImpl::set_delay_offset_ms(int offset) { | 995 void AudioProcessingImpl::set_delay_offset_ms(int offset) { |
1001 rtc::CritScope cs(&crit_capture_); | 996 rtc::CritScope cs(&crit_capture_); |
1002 capture_.delay_offset_ms = offset; | 997 capture_.delay_offset_ms = offset; |
1003 } | 998 } |
1004 | 999 |
1005 int AudioProcessingImpl::delay_offset_ms() const { | 1000 int AudioProcessingImpl::delay_offset_ms() const { |
1006 rtc::CritScope cs(&crit_capture_); | 1001 rtc::CritScope cs(&crit_capture_); |
1007 return capture_.delay_offset_ms; | 1002 return capture_.delay_offset_ms; |
1008 } | 1003 } |
1009 | 1004 |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1497 debug_dump_.capture.event_msg->mutable_config()->CopyFrom(config); | 1492 debug_dump_.capture.event_msg->mutable_config()->CopyFrom(config); |
1498 | 1493 |
1499 RETURN_ON_ERR(WriteMessageToDebugFile(debug_dump_.debug_file.get(), | 1494 RETURN_ON_ERR(WriteMessageToDebugFile(debug_dump_.debug_file.get(), |
1500 &debug_dump_.num_bytes_left_for_log_, | 1495 &debug_dump_.num_bytes_left_for_log_, |
1501 &crit_debug_, &debug_dump_.capture)); | 1496 &crit_debug_, &debug_dump_.capture)); |
1502 return kNoError; | 1497 return kNoError; |
1503 } | 1498 } |
1504 #endif // WEBRTC_AUDIOPROC_DEBUG_DUMP | 1499 #endif // WEBRTC_AUDIOPROC_DEBUG_DUMP |
1505 | 1500 |
1506 } // namespace webrtc | 1501 } // namespace webrtc |
OLD | NEW |