| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 *i == RentACodec::CodecId::kCNWB || | 43 *i == RentACodec::CodecId::kCNWB || |
| 44 *i == RentACodec::CodecId::kCNSWB || | 44 *i == RentACodec::CodecId::kCNSWB || |
| 45 *i == RentACodec::CodecId::kCNFB)); | 45 *i == RentACodec::CodecId::kCNFB)); |
| 46 } | 46 } |
| 47 | 47 |
| 48 } // namespace | 48 } // namespace |
| 49 | 49 |
| 50 AcmReceiver::AcmReceiver(const AudioCodingModule::Config& config) | 50 AcmReceiver::AcmReceiver(const AudioCodingModule::Config& config) |
| 51 : last_audio_decoder_(nullptr), | 51 : last_audio_decoder_(nullptr), |
| 52 last_audio_buffer_(new int16_t[AudioFrame::kMaxDataSizeSamples]), | 52 last_audio_buffer_(new int16_t[AudioFrame::kMaxDataSizeSamples]), |
| 53 neteq_(NetEq::Create(config.neteq_config)), | 53 neteq_(NetEq::Create(config.neteq_config, config.decoder_factory)), |
| 54 clock_(config.clock), | 54 clock_(config.clock), |
| 55 resampled_last_output_frame_(true) { | 55 resampled_last_output_frame_(true) { |
| 56 assert(clock_); | 56 assert(clock_); |
| 57 memset(last_audio_buffer_.get(), 0, AudioFrame::kMaxDataSizeSamples); | 57 memset(last_audio_buffer_.get(), 0, AudioFrame::kMaxDataSizeSamples); |
| 58 } | 58 } |
| 59 | 59 |
| 60 AcmReceiver::~AcmReceiver() { | 60 AcmReceiver::~AcmReceiver() { |
| 61 delete neteq_; | 61 delete neteq_; |
| 62 } | 62 } |
| 63 | 63 |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 | 410 |
| 411 void AcmReceiver::GetDecodingCallStatistics( | 411 void AcmReceiver::GetDecodingCallStatistics( |
| 412 AudioDecodingCallStats* stats) const { | 412 AudioDecodingCallStats* stats) const { |
| 413 rtc::CritScope lock(&crit_sect_); | 413 rtc::CritScope lock(&crit_sect_); |
| 414 *stats = call_stats_.GetDecodingStatistics(); | 414 *stats = call_stats_.GetDecodingStatistics(); |
| 415 } | 415 } |
| 416 | 416 |
| 417 } // namespace acm2 | 417 } // namespace acm2 |
| 418 | 418 |
| 419 } // namespace webrtc | 419 } // namespace webrtc |
| OLD | NEW |