| 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_TEST_AUDIO_PROCESSING_SIMULATOR_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_TEST_AUDIO_PROCESSING_SIMULATOR_H_ |
| 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_TEST_AUDIO_PROCESSING_SIMULATOR_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_TEST_AUDIO_PROCESSING_SIMULATOR_H_ |
| 13 | 13 |
| 14 #include <algorithm> | 14 #include <algorithm> |
| 15 #include <fstream> | 15 #include <fstream> |
| 16 #include <limits> | 16 #include <limits> |
| 17 #include <memory> | 17 #include <memory> |
| 18 #include <string> | 18 #include <string> |
| 19 | 19 |
| 20 #include "webrtc/base/timeutils.h" | |
| 21 #include "webrtc/base/constructormagic.h" | 20 #include "webrtc/base/constructormagic.h" |
| 22 #include "webrtc/base/optional.h" | 21 #include "webrtc/base/optional.h" |
| 22 #include "webrtc/base/task_queue.h" |
| 23 #include "webrtc/base/timeutils.h" |
| 23 #include "webrtc/common_audio/channel_buffer.h" | 24 #include "webrtc/common_audio/channel_buffer.h" |
| 24 #include "webrtc/modules/audio_processing/include/audio_processing.h" | 25 #include "webrtc/modules/audio_processing/include/audio_processing.h" |
| 25 #include "webrtc/modules/audio_processing/test/test_utils.h" | 26 #include "webrtc/modules/audio_processing/test/test_utils.h" |
| 26 | 27 |
| 27 namespace webrtc { | 28 namespace webrtc { |
| 28 namespace test { | 29 namespace test { |
| 29 | 30 |
| 30 // Holds all the parameters available for controlling the simulation. | 31 // Holds all the parameters available for controlling the simulation. |
| 31 struct SimulationSettings { | 32 struct SimulationSettings { |
| 32 SimulationSettings(); | 33 SimulationSettings(); |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 void SetupOutput(); | 171 void SetupOutput(); |
| 171 | 172 |
| 172 size_t num_process_stream_calls_ = 0; | 173 size_t num_process_stream_calls_ = 0; |
| 173 size_t num_reverse_process_stream_calls_ = 0; | 174 size_t num_reverse_process_stream_calls_ = 0; |
| 174 size_t output_reset_counter_ = 0; | 175 size_t output_reset_counter_ = 0; |
| 175 std::unique_ptr<ChannelBufferWavWriter> buffer_writer_; | 176 std::unique_ptr<ChannelBufferWavWriter> buffer_writer_; |
| 176 std::unique_ptr<ChannelBufferWavWriter> reverse_buffer_writer_; | 177 std::unique_ptr<ChannelBufferWavWriter> reverse_buffer_writer_; |
| 177 TickIntervalStats proc_time_; | 178 TickIntervalStats proc_time_; |
| 178 std::ofstream residual_echo_likelihood_graph_writer_; | 179 std::ofstream residual_echo_likelihood_graph_writer_; |
| 179 | 180 |
| 181 rtc::TaskQueue worker_queue_; |
| 182 |
| 180 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioProcessingSimulator); | 183 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioProcessingSimulator); |
| 181 }; | 184 }; |
| 182 | 185 |
| 183 } // namespace test | 186 } // namespace test |
| 184 } // namespace webrtc | 187 } // namespace webrtc |
| 185 | 188 |
| 186 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_TEST_AUDIO_PROCESSING_SIMULATOR_H_ | 189 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_TEST_AUDIO_PROCESSING_SIMULATOR_H_ |
| OLD | NEW |