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/main/acm2/nack.h" | 11 #include "webrtc/modules/audio_coding/main/acm2/nack.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/modules/interface/module_common_types.h" | 17 #include "webrtc/modules/interface/module_common_types.h" |
18 #include "webrtc/system_wrappers/interface/logging.h" | 18 #include "webrtc/system_wrappers/include/logging.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 namespace acm2 { | 22 namespace acm2 { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 const int kDefaultSampleRateKhz = 48; | 26 const int kDefaultSampleRateKhz = 48; |
27 const int kDefaultPacketSizeMs = 20; | 27 const int kDefaultPacketSizeMs = 20; |
28 | 28 |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 if (it->second.is_missing && | 222 if (it->second.is_missing && |
223 it->second.time_to_play_ms > round_trip_time_ms) | 223 it->second.time_to_play_ms > round_trip_time_ms) |
224 sequence_numbers.push_back(it->first); | 224 sequence_numbers.push_back(it->first); |
225 } | 225 } |
226 return sequence_numbers; | 226 return sequence_numbers; |
227 } | 227 } |
228 | 228 |
229 } // namespace acm2 | 229 } // namespace acm2 |
230 | 230 |
231 } // namespace webrtc | 231 } // namespace webrtc |
OLD | NEW |