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> |
|
hlundin-webrtc
2016/10/13 11:45:20
Do you need stddef.h here?
ivoc
2016/10/13 13:46:15
I got an error about size_t being undefined, that'
hlundin-webrtc
2016/10/14 06:59:17
Ah, yes, size_t...
| |
| 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 nrOfSamples); | |
|
hlundin-webrtc
2016/10/13 11:45:20
nr_of_samples, or num_samples.
ivoc
2016/10/13 13:46:15
Done.
| |
| 24 | |
| 25 void Process(const float* nearend, size_t nrOfSamples); | |
|
hlundin-webrtc
2016/10/13 11:45:20
again
ivoc
2016/10/13 13:46:15
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 |