Chromium Code Reviews| Index: webrtc/modules/audio_processing/echo_detector/echo_detector.h |
| diff --git a/webrtc/test/fuzzers/sdp_parser_fuzzer.cc b/webrtc/modules/audio_processing/echo_detector/echo_detector.h |
| similarity index 51% |
| copy from webrtc/test/fuzzers/sdp_parser_fuzzer.cc |
| copy to webrtc/modules/audio_processing/echo_detector/echo_detector.h |
| index f21c991a3e1da9983514f636400e22cf9c989c9d..46ca138d1dc0ae81ec970d50f384f5d381a52a90 100644 |
| --- a/webrtc/test/fuzzers/sdp_parser_fuzzer.cc |
| +++ b/webrtc/modules/audio_processing/echo_detector/echo_detector.h |
| @@ -8,18 +8,25 @@ |
| * be found in the AUTHORS file in the root of the source tree. |
| */ |
| -#include <stddef.h> |
| -#include <stdint.h> |
|
ivoc
2016/10/12 15:40:13
It seems like the diff has chosen another random f
|
| +#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_DETECTOR_ECHO_DETECTOR_H_ |
| +#define WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_DETECTOR_ECHO_DETECTOR_H_ |
| -#include "webrtc/api/jsepsessiondescription.h" |
| +#include <stddef.h> |
| namespace webrtc { |
| -void FuzzOneInput(const uint8_t* data, size_t size) { |
| - std::string message(reinterpret_cast<const char*>(data), size); |
| - webrtc::SdpParseError error; |
| - std::unique_ptr<webrtc::SessionDescriptionInterface> sdp( |
| - CreateSessionDescription("offer", message, &error)); |
| -} |
| +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
|
| + public: |
| + EchoDetector() {} |
| + ~EchoDetector() {} |
| + |
| + void BufferFarend(const float* farend, size_t nrOfSamples); |
| + |
| + void Process(const float* nearend, size_t nrOfSamples); |
| + |
| + void Initialize(int sample_rate_hz); |
| +}; |
| } // namespace webrtc |
| + |
| +#endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_DETECTOR_ECHO_DETECTOR_H_ |