OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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_PROCESSING_ECHO_DETECTOR_ECHO_DETECTOR_H_ | |
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_DETECTOR_ECHO_DETECTOR_H_ | |
13 | |
11 #include <stddef.h> | 14 #include <stddef.h> |
12 #include <stdint.h> | |
13 | |
14 #include "webrtc/api/jsepsessiondescription.h" | |
15 | 15 |
16 namespace webrtc { | 16 namespace webrtc { |
17 void FuzzOneInput(const uint8_t* data, size_t size) { | |
18 std::string message(reinterpret_cast<const char*>(data), size); | |
19 webrtc::SdpParseError error; | |
20 | 17 |
21 std::unique_ptr<webrtc::SessionDescriptionInterface> sdp( | 18 class EchoDetector { |
22 CreateSessionDescription("offer", message, &error)); | 19 public: |
23 } | 20 EchoDetector() {} |
21 ~EchoDetector() {} | |
22 | |
23 void BufferFarend(const float* farend, size_t num_samples); | |
hlundin-webrtc
2016/10/14 07:15:52
I think you should use rtc::ArrayView<const float>
kwiberg-webrtc
2016/10/14 07:28:48
+1. ArrayView should be used instead of separate p
ivoc
2016/10/14 09:53:19
Done.
| |
24 | |
25 void Process(const float* nearend, size_t num_samples); | |
hlundin-webrtc
2016/10/14 07:15:53
And here.
ivoc
2016/10/14 09:53:18
Done.
| |
26 | |
27 void Initialize(int sample_rate_hz); | |
28 }; | |
24 | 29 |
25 } // namespace webrtc | 30 } // namespace webrtc |
31 | |
32 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_DETECTOR_ECHO_DETECTOR_H_ | |
OLD | NEW |