Chromium Code Reviews| 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> | |
|
ivoc
2016/10/12 15:40:13
It seems like the diff has chosen another random f
| |
| 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 { |
|
peah-webrtc
2016/10/13 10:11:17
What is the difference between the EchoDetector an
ivoc
2016/10/13 10:31:25
I was planning to put the actual algorithmic code
peah-webrtc
2016/10/13 10:50:27
That sounds good! It is very hard to tell at this
| |
| 22 CreateSessionDescription("offer", message, &error)); | 19 public: |
| 23 } | 20 EchoDetector() {} |
| 21 ~EchoDetector() {} | |
| 22 | |
| 23 void BufferFarend(const float* farend, size_t nrOfSamples); | |
| 24 | |
| 25 void Process(const float* nearend, size_t nrOfSamples); | |
| 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 |