OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | |
ivoc
2017/02/10 13:52:34
2017
peah-webrtc
2017/02/20 07:37:16
Done.
| |
3 * | |
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 | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 | |
11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_DELAY_HANDLER_H_ | |
peah-webrtc
2017/02/20 07:37:15
The functionality in DelayHandler is now moved int
| |
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_DELAY_HANDLER_H_ | |
13 | |
14 #include <algorithm> | |
15 #include <array> | |
16 #include <vector> | |
17 | |
18 #include "webrtc/base/array_view.h" | |
ivoc
2017/02/10 13:52:34
It looks like this is not used in this header...
peah-webrtc
2017/02/20 07:37:15
Thanks!
I removed this file now.
Done.
| |
19 #include "webrtc/base/constructormagic.h" | |
20 #include "webrtc/base/optional.h" | |
21 #include "webrtc/modules/audio_processing/aec3/aec3_constants.h" | |
22 | |
23 namespace webrtc { | |
24 | |
25 // Handles the delay estimates of the echo path. | |
26 class DelayHandler { | |
27 public: | |
28 DelayHandler(); | |
29 ~DelayHandler(); | |
30 // Returns the delay estimate based on the linear filter, | |
31 const rtc::Optional<size_t>& FilterDelay() const { return filter_delay_; } | |
32 | |
33 // Returns the externally provided delay. | |
34 const rtc::Optional<size_t>& ExternalDelay() const { return external_delay_; } | |
35 | |
36 // Updates the delay estimates. | |
37 void UpdateDelays(const std::vector<std::array<float, kFftLengthBy2Plus1>>& | |
ivoc
2017/02/10 13:52:34
... But maybe it should be used here instead of st
peah-webrtc
2017/02/20 07:37:16
True. The advantage of doing it like this though i
| |
38 filter_frequency_response, | |
39 const rtc::Optional<size_t>& external_delay_samples); | |
ivoc
2017/02/10 13:52:34
Since this is just a single number, I think the na
peah-webrtc
2017/02/20 07:37:16
samples is the unit. But I see what you mean, this
| |
40 | |
41 private: | |
42 rtc::Optional<size_t> filter_delay_; | |
43 rtc::Optional<size_t> external_delay_; | |
44 | |
45 RTC_DISALLOW_COPY_AND_ASSIGN(DelayHandler); | |
46 }; | |
47 | |
48 } // namespace webrtc | |
49 | |
50 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_DELAY_HANDLER_H_ | |
OLD | NEW |