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 #include "webrtc/modules/audio_processing/test/wav_based_simulator.h" | 11 #include "webrtc/modules/audio_processing/test/wav_based_simulator.h" |
12 | 12 |
13 #include <stdio.h> | 13 #include <stdio.h> |
14 #include <iostream> | 14 #include <iostream> |
15 | 15 |
| 16 #include "webrtc/base/checks.h" |
16 #include "webrtc/modules/audio_processing/test/test_utils.h" | 17 #include "webrtc/modules/audio_processing/test/test_utils.h" |
17 #include "webrtc/rtc_base/checks.h" | |
18 #include "webrtc/test/testsupport/trace_to_stderr.h" | 18 #include "webrtc/test/testsupport/trace_to_stderr.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 namespace test { | 21 namespace test { |
22 | 22 |
23 std::vector<WavBasedSimulator::SimulationEventType> | 23 std::vector<WavBasedSimulator::SimulationEventType> |
24 WavBasedSimulator::GetCustomEventChain(const std::string& filename) { | 24 WavBasedSimulator::GetCustomEventChain(const std::string& filename) { |
25 std::vector<WavBasedSimulator::SimulationEventType> call_chain; | 25 std::vector<WavBasedSimulator::SimulationEventType> call_chain; |
26 FILE* stream = OpenFile(filename.c_str(), "r"); | 26 FILE* stream = OpenFile(filename.c_str(), "r"); |
27 | 27 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 } | 197 } |
198 | 198 |
199 SetupBuffersConfigsOutputs( | 199 SetupBuffersConfigsOutputs( |
200 input_sample_rate_hz, output_sample_rate_hz, reverse_sample_rate_hz, | 200 input_sample_rate_hz, output_sample_rate_hz, reverse_sample_rate_hz, |
201 reverse_output_sample_rate_hz, input_num_channels, output_num_channels, | 201 reverse_output_sample_rate_hz, input_num_channels, output_num_channels, |
202 reverse_num_channels, reverse_output_num_channels); | 202 reverse_num_channels, reverse_output_num_channels); |
203 } | 203 } |
204 | 204 |
205 } // namespace test | 205 } // namespace test |
206 } // namespace webrtc | 206 } // namespace webrtc |
OLD | NEW |