| 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 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 // TODO(hlundin): Write test for this. | 928 // TODO(hlundin): Write test for this. |
| 929 DoAlternativePlc(true); | 929 DoAlternativePlc(true); |
| 930 break; | 930 break; |
| 931 } | 931 } |
| 932 case kAudioRepetitionIncreaseTimestamp: { | 932 case kAudioRepetitionIncreaseTimestamp: { |
| 933 // TODO(hlundin): Write test for this. | 933 // TODO(hlundin): Write test for this. |
| 934 sync_buffer_->IncreaseEndTimestamp( | 934 sync_buffer_->IncreaseEndTimestamp( |
| 935 static_cast<uint32_t>(output_size_samples_)); | 935 static_cast<uint32_t>(output_size_samples_)); |
| 936 // Skipping break on purpose. Execution should move on into the | 936 // Skipping break on purpose. Execution should move on into the |
| 937 // next case. | 937 // next case. |
| 938 FALLTHROUGH(); | 938 RTC_FALLTHROUGH(); |
| 939 } | 939 } |
| 940 case kAudioRepetition: { | 940 case kAudioRepetition: { |
| 941 // TODO(hlundin): Write test for this. | 941 // TODO(hlundin): Write test for this. |
| 942 // Copy last |output_size_samples_| from |sync_buffer_| to | 942 // Copy last |output_size_samples_| from |sync_buffer_| to |
| 943 // |algorithm_buffer|. | 943 // |algorithm_buffer|. |
| 944 algorithm_buffer_->PushBackFromIndex( | 944 algorithm_buffer_->PushBackFromIndex( |
| 945 *sync_buffer_, sync_buffer_->Size() - output_size_samples_); | 945 *sync_buffer_, sync_buffer_->Size() - output_size_samples_); |
| 946 expand_->Reset(); | 946 expand_->Reset(); |
| 947 break; | 947 break; |
| 948 } | 948 } |
| (...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2115 } | 2115 } |
| 2116 } | 2116 } |
| 2117 | 2117 |
| 2118 void NetEqImpl::CreateDecisionLogic() { | 2118 void NetEqImpl::CreateDecisionLogic() { |
| 2119 decision_logic_.reset(DecisionLogic::Create( | 2119 decision_logic_.reset(DecisionLogic::Create( |
| 2120 fs_hz_, output_size_samples_, playout_mode_, decoder_database_.get(), | 2120 fs_hz_, output_size_samples_, playout_mode_, decoder_database_.get(), |
| 2121 *packet_buffer_.get(), delay_manager_.get(), buffer_level_filter_.get(), | 2121 *packet_buffer_.get(), delay_manager_.get(), buffer_level_filter_.get(), |
| 2122 tick_timer_.get())); | 2122 tick_timer_.get())); |
| 2123 } | 2123 } |
| 2124 } // namespace webrtc | 2124 } // namespace webrtc |
| OLD | NEW |