| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 return codec_manager_.RegisterEncoder(send_codec); | 201 return codec_manager_.RegisterEncoder(send_codec); |
| 202 } | 202 } |
| 203 | 203 |
| 204 void AudioCodingModuleImpl::RegisterExternalSendCodec( | 204 void AudioCodingModuleImpl::RegisterExternalSendCodec( |
| 205 AudioEncoder* external_speech_encoder) { | 205 AudioEncoder* external_speech_encoder) { |
| 206 CriticalSectionScoped lock(acm_crit_sect_.get()); | 206 CriticalSectionScoped lock(acm_crit_sect_.get()); |
| 207 codec_manager_.RegisterEncoder(external_speech_encoder); | 207 codec_manager_.RegisterEncoder(external_speech_encoder); |
| 208 } | 208 } |
| 209 | 209 |
| 210 // Get current send codec. | 210 // Get current send codec. |
| 211 rtc::Maybe<CodecInst> AudioCodingModuleImpl::SendCodec() const { | 211 rtc::Optional<CodecInst> AudioCodingModuleImpl::SendCodec() const { |
| 212 CriticalSectionScoped lock(acm_crit_sect_.get()); | 212 CriticalSectionScoped lock(acm_crit_sect_.get()); |
| 213 return codec_manager_.GetCodecInst(); | 213 return codec_manager_.GetCodecInst(); |
| 214 } | 214 } |
| 215 | 215 |
| 216 // Get current send frequency. | 216 // Get current send frequency. |
| 217 int AudioCodingModuleImpl::SendFrequency() const { | 217 int AudioCodingModuleImpl::SendFrequency() const { |
| 218 WEBRTC_TRACE(webrtc::kTraceStream, webrtc::kTraceAudioCoding, id_, | 218 WEBRTC_TRACE(webrtc::kTraceStream, webrtc::kTraceAudioCoding, id_, |
| 219 "SendFrequency()"); | 219 "SendFrequency()"); |
| 220 CriticalSectionScoped lock(acm_crit_sect_.get()); | 220 CriticalSectionScoped lock(acm_crit_sect_.get()); |
| 221 | 221 |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 return receiver_.LeastRequiredDelayMs(); | 783 return receiver_.LeastRequiredDelayMs(); |
| 784 } | 784 } |
| 785 | 785 |
| 786 void AudioCodingModuleImpl::GetDecodingCallStatistics( | 786 void AudioCodingModuleImpl::GetDecodingCallStatistics( |
| 787 AudioDecodingCallStats* call_stats) const { | 787 AudioDecodingCallStats* call_stats) const { |
| 788 receiver_.GetDecodingCallStatistics(call_stats); | 788 receiver_.GetDecodingCallStatistics(call_stats); |
| 789 } | 789 } |
| 790 | 790 |
| 791 } // namespace acm2 | 791 } // namespace acm2 |
| 792 } // namespace webrtc | 792 } // namespace webrtc |
| OLD | NEW |