blob: 9a9013c6445eb3ebbfb280e31f9cd9c6d7f7ab87 [file] [log] [blame]
Ivo Creusen8c812f32018-03-09 17:33:04 +01001/*
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 Creusen2cb41052018-03-15 12:22:52 +010011#ifndef MODULES_AUDIO_PROCESSING_TEST_AUDIOPROC_FLOAT_IMPL_H_
12#define MODULES_AUDIO_PROCESSING_TEST_AUDIOPROC_FLOAT_IMPL_H_
Ivo Creusen8c812f32018-03-09 17:33:04 +010013
14#include <memory>
15
16#include "modules/audio_processing/include/audio_processing.h"
17
18namespace webrtc {
19namespace test {
20
Sonia-Florina Horchidanb75d14c2019-08-12 09:57:01 +020021// 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 Creusen2cb41052018-03-15 12:22:52 +010027int AudioprocFloatImpl(std::unique_ptr<AudioProcessingBuilder> ap_builder,
28 int argc,
Sonia-Florina Horchidanb75d14c2019-08-12 09:57:01 +020029 char* argv[],
30 absl::string_view input_aecdump,
31 std::vector<float>* processed_capture_samples);
Ivo Creusen8c812f32018-03-09 17:33:04 +010032
33} // namespace test
34} // namespace webrtc
35
Ivo Creusen2cb41052018-03-15 12:22:52 +010036#endif // MODULES_AUDIO_PROCESSING_TEST_AUDIOPROC_FLOAT_IMPL_H_