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 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_DELAY_PEAK_DETECTOR_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_DELAY_PEAK_DETECTOR_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_DELAY_PEAK_DETECTOR_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_DELAY_PEAK_DETECTOR_H_ |
13 | 13 |
14 #include <string.h> // size_t | 14 #include <string.h> // size_t |
15 | 15 |
16 #include <list> | 16 #include <list> |
17 #include <memory> | 17 #include <memory> |
18 | 18 |
| 19 #include "webrtc/base/constructormagic.h" |
19 #include "webrtc/modules/audio_coding/neteq/tick_timer.h" | 20 #include "webrtc/modules/audio_coding/neteq/tick_timer.h" |
20 #include "webrtc/rtc_base/constructormagic.h" | |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 | 23 |
24 class DelayPeakDetector { | 24 class DelayPeakDetector { |
25 public: | 25 public: |
26 DelayPeakDetector(const TickTimer* tick_timer); | 26 DelayPeakDetector(const TickTimer* tick_timer); |
27 virtual ~DelayPeakDetector(); | 27 virtual ~DelayPeakDetector(); |
28 virtual void Reset(); | 28 virtual void Reset(); |
29 | 29 |
30 // Notifies the DelayPeakDetector of how much audio data is carried in each | 30 // Notifies the DelayPeakDetector of how much audio data is carried in each |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 bool peak_found_; | 65 bool peak_found_; |
66 int peak_detection_threshold_; | 66 int peak_detection_threshold_; |
67 const TickTimer* tick_timer_; | 67 const TickTimer* tick_timer_; |
68 std::unique_ptr<TickTimer::Stopwatch> peak_period_stopwatch_; | 68 std::unique_ptr<TickTimer::Stopwatch> peak_period_stopwatch_; |
69 | 69 |
70 RTC_DISALLOW_COPY_AND_ASSIGN(DelayPeakDetector); | 70 RTC_DISALLOW_COPY_AND_ASSIGN(DelayPeakDetector); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace webrtc | 73 } // namespace webrtc |
74 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DELAY_PEAK_DETECTOR_H_ | 74 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DELAY_PEAK_DETECTOR_H_ |
OLD | NEW |