Ivo Creusen | 8c812f3 | 2018-03-09 17:33:04 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. |
| 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 | |
Ivo Creusen | 2cb4105 | 2018-03-15 12:22:52 +0100 | [diff] [blame] | 11 | #ifndef MODULES_AUDIO_PROCESSING_TEST_AUDIOPROC_FLOAT_IMPL_H_ |
| 12 | #define MODULES_AUDIO_PROCESSING_TEST_AUDIOPROC_FLOAT_IMPL_H_ |
Ivo Creusen | 8c812f3 | 2018-03-09 17:33:04 +0100 | [diff] [blame] | 13 | |
| 14 | #include <memory> |
| 15 | |
| 16 | #include "modules/audio_processing/include/audio_processing.h" |
| 17 | |
| 18 | namespace webrtc { |
| 19 | namespace test { |
| 20 | |
Sonia-Florina Horchidan | b75d14c | 2019-08-12 09:57:01 +0200 | [diff] [blame^] | 21 | // This function implements the audio processing simulation utility. Pass |
| 22 | // |input_aecdump| to provide the content of an AEC dump file as a string; if |
| 23 | // |input_aecdump| is not passed, a WAV or AEC input dump file must be specified |
| 24 | // via the |argv| argument. Pass |processed_capture_samples| to write in it the |
| 25 | // samples processed on the capture side; if |processed_capture_samples| is not |
| 26 | // passed, the output file can optionally be specified via the |argv| argument. |
Ivo Creusen | 2cb4105 | 2018-03-15 12:22:52 +0100 | [diff] [blame] | 27 | int AudioprocFloatImpl(std::unique_ptr<AudioProcessingBuilder> ap_builder, |
| 28 | int argc, |
Sonia-Florina Horchidan | b75d14c | 2019-08-12 09:57:01 +0200 | [diff] [blame^] | 29 | char* argv[], |
| 30 | absl::string_view input_aecdump, |
| 31 | std::vector<float>* processed_capture_samples); |
Ivo Creusen | 8c812f3 | 2018-03-09 17:33:04 +0100 | [diff] [blame] | 32 | |
| 33 | } // namespace test |
| 34 | } // namespace webrtc |
| 35 | |
Ivo Creusen | 2cb4105 | 2018-03-15 12:22:52 +0100 | [diff] [blame] | 36 | #endif // MODULES_AUDIO_PROCESSING_TEST_AUDIOPROC_FLOAT_IMPL_H_ |