| 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 |
| 11 #include "webrtc/modules/audio_coding/neteq/nack_tracker.h" | 11 #include "webrtc/modules/audio_coding/neteq/nack_tracker.h" |
| 12 | 12 |
| 13 #include <assert.h> // For assert. | 13 #include <assert.h> // For assert. |
| 14 | 14 |
| 15 #include <algorithm> // For std::max. | 15 #include <algorithm> // For std::max. |
| 16 | 16 |
| 17 #include "webrtc/base/checks.h" | 17 #include "webrtc/base/checks.h" |
| 18 #include "webrtc/modules/include/module_common_types.h" | 18 #include "webrtc/modules/include/module_common_types.h" |
| 19 #include "webrtc/system_wrappers/include/logging.h" | |
| 20 | 19 |
| 21 namespace webrtc { | 20 namespace webrtc { |
| 22 namespace { | 21 namespace { |
| 23 | 22 |
| 24 const int kDefaultSampleRateKhz = 48; | 23 const int kDefaultSampleRateKhz = 48; |
| 25 const int kDefaultPacketSizeMs = 20; | 24 const int kDefaultPacketSizeMs = 20; |
| 26 | 25 |
| 27 } // namespace | 26 } // namespace |
| 28 | 27 |
| 29 NackTracker::NackTracker(int nack_threshold_packets) | 28 NackTracker::NackTracker(int nack_threshold_packets) |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 for (NackList::const_iterator it = nack_list_.begin(); it != nack_list_.end(); | 223 for (NackList::const_iterator it = nack_list_.begin(); it != nack_list_.end(); |
| 225 ++it) { | 224 ++it) { |
| 226 if (it->second.is_missing && | 225 if (it->second.is_missing && |
| 227 it->second.time_to_play_ms > round_trip_time_ms) | 226 it->second.time_to_play_ms > round_trip_time_ms) |
| 228 sequence_numbers.push_back(it->first); | 227 sequence_numbers.push_back(it->first); |
| 229 } | 228 } |
| 230 return sequence_numbers; | 229 return sequence_numbers; |
| 231 } | 230 } |
| 232 | 231 |
| 233 } // namespace webrtc | 232 } // namespace webrtc |
| OLD | NEW |