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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 break; | 182 break; |
183 } | 183 } |
184 default: | 184 default: |
185 RTC_NOTREACHED(); | 185 RTC_NOTREACHED(); |
186 } | 186 } |
187 if (!vad_enabled) { | 187 if (!vad_enabled) { |
188 // Always set kVadUnknown when receive VAD is inactive. | 188 // Always set kVadUnknown when receive VAD is inactive. |
189 audio_frame->vad_activity_ = AudioFrame::kVadUnknown; | 189 audio_frame->vad_activity_ = AudioFrame::kVadUnknown; |
190 } | 190 } |
191 } | 191 } |
192 } | 192 } // namespace |
193 | 193 |
194 int NetEqImpl::GetAudio(AudioFrame* audio_frame) { | 194 int NetEqImpl::GetAudio(AudioFrame* audio_frame) { |
195 TRACE_EVENT0("webrtc", "NetEqImpl::GetAudio"); | 195 TRACE_EVENT0("webrtc", "NetEqImpl::GetAudio"); |
196 rtc::CritScope lock(&crit_sect_); | 196 rtc::CritScope lock(&crit_sect_); |
197 int error = GetAudioInternal(audio_frame); | 197 int error = GetAudioInternal(audio_frame); |
198 RTC_DCHECK_EQ( | 198 RTC_DCHECK_EQ( |
199 audio_frame->sample_rate_hz_, | 199 audio_frame->sample_rate_hz_, |
200 rtc::checked_cast<int>(audio_frame->samples_per_channel_ * 100)); | 200 rtc::checked_cast<int>(audio_frame->samples_per_channel_ * 100)); |
201 if (error != 0) { | 201 if (error != 0) { |
202 error_code_ = error; | 202 error_code_ = error; |
(...skipping 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2084 | 2084 |
2085 void NetEqImpl::CreateDecisionLogic() { | 2085 void NetEqImpl::CreateDecisionLogic() { |
2086 decision_logic_.reset(DecisionLogic::Create(fs_hz_, output_size_samples_, | 2086 decision_logic_.reset(DecisionLogic::Create(fs_hz_, output_size_samples_, |
2087 playout_mode_, | 2087 playout_mode_, |
2088 decoder_database_.get(), | 2088 decoder_database_.get(), |
2089 *packet_buffer_.get(), | 2089 *packet_buffer_.get(), |
2090 delay_manager_.get(), | 2090 delay_manager_.get(), |
2091 buffer_level_filter_.get())); | 2091 buffer_level_filter_.get())); |
2092 } | 2092 } |
2093 } // namespace webrtc | 2093 } // namespace webrtc |
OLD | NEW |