blob: 25e4dd5b1cd9cae28815e4e86d10c539a7fad63c [file] [log] [blame]
Ivo Creusen2cb41052018-03-15 12:22:52 +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
11#ifndef API_TEST_AUDIOPROC_FLOAT_H_
12#define API_TEST_AUDIOPROC_FLOAT_H_
13
14#include <memory>
15
16#include "modules/audio_processing/include/audio_processing.h"
17
18namespace webrtc {
19namespace test {
20
21// This is an interface for the audio processing simulation utility. This
22// utility can be used to simulate the audioprocessing module using a recording
23// (either an AEC dump or wav files), and generate the output as a wav file.
24// The |ap_builder| object will be used to create the AudioProcessing instance
25// that is used during the simulation. The |ap_builder| supports setting of
26// injectable components, which will be passed on to the created AudioProcessing
27// instance. It is needed to pass the command line flags as |argc| and |argv|,
28// so these can be interpreted properly by the utility.
29// To get a fully-working audioproc_f utility, all that is needed is to write a
30// main function, create an AudioProcessingBuilder, optionally set custom
31// processing components on it, and pass the builder together with the command
32// line arguments into this function.
33// To see a list of all supported command line flags, run the executable with
34// the '--help' flag.
35int AudioprocFloat(std::unique_ptr<AudioProcessingBuilder> ap_builder,
36 int argc,
37 char* argv[]);
38
39} // namespace test
40} // namespace webrtc
41
42#endif // API_TEST_AUDIOPROC_FLOAT_H_