| 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 |
| 11 #include "webrtc/modules/audio_coding/neteq/delay_manager.h" | 11 #include "webrtc/modules/audio_coding/neteq/delay_manager.h" |
| 12 | 12 |
| 13 #include <assert.h> | 13 #include <assert.h> |
| 14 #include <math.h> | 14 #include <math.h> |
| 15 | 15 |
| 16 #include <algorithm> // max, min | 16 #include <algorithm> // max, min |
| 17 | 17 |
| 18 #include "webrtc/base/safe_conversions.h" | 18 #include "webrtc/base/numerics/safe_conversions.h" |
| 19 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" | 19 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" |
| 20 #include "webrtc/modules/audio_coding/neteq/delay_peak_detector.h" | 20 #include "webrtc/modules/audio_coding/neteq/delay_peak_detector.h" |
| 21 #include "webrtc/modules/include/module_common_types.h" | 21 #include "webrtc/modules/include/module_common_types.h" |
| 22 #include "webrtc/system_wrappers/include/logging.h" | 22 #include "webrtc/system_wrappers/include/logging.h" |
| 23 | 23 |
| 24 namespace webrtc { | 24 namespace webrtc { |
| 25 | 25 |
| 26 DelayManager::DelayManager(size_t max_packets_in_buffer, | 26 DelayManager::DelayManager(size_t max_packets_in_buffer, |
| 27 DelayPeakDetector* peak_detector) | 27 DelayPeakDetector* peak_detector) |
| 28 : first_packet_received_(false), | 28 : first_packet_received_(false), |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 int DelayManager::base_target_level() const { return base_target_level_; } | 420 int DelayManager::base_target_level() const { return base_target_level_; } |
| 421 void DelayManager::set_streaming_mode(bool value) { streaming_mode_ = value; } | 421 void DelayManager::set_streaming_mode(bool value) { streaming_mode_ = value; } |
| 422 int DelayManager::last_pack_cng_or_dtmf() const { | 422 int DelayManager::last_pack_cng_or_dtmf() const { |
| 423 return last_pack_cng_or_dtmf_; | 423 return last_pack_cng_or_dtmf_; |
| 424 } | 424 } |
| 425 | 425 |
| 426 void DelayManager::set_last_pack_cng_or_dtmf(int value) { | 426 void DelayManager::set_last_pack_cng_or_dtmf(int value) { |
| 427 last_pack_cng_or_dtmf_ = value; | 427 last_pack_cng_or_dtmf_ = value; |
| 428 } | 428 } |
| 429 } // namespace webrtc | 429 } // namespace webrtc |
| OLD | NEW |